Latest News

17th September 2009
Send to twitter Send to Facebook

The Perl module Math::BigInt::GMP is a wrapper around the GNU Multiple Precision arithmetic C library and is useful for certain other math-intensive Perl operations. Ominously, the C library page warns that "GMP is very often miscompiled! Please never use your newly compiled libgmp.a or libgmp.so without first running make check" which makes the hairs on the back of my neck stand on end. However, I needed this lib.

On my Ubuntu linux machine, the Perl library (Math::BigInt::GMP) would not compile because of gmp was not installed. It would have been nice if the docs for this lib had mentioned this dependency. In any case, I install gmp with the following shell command:

apt-get install libgmp3-dev 

If prompted by apt-get to install additional dependencies, agree. Then go back and install Math::BigInt::GMP.

make clean; 
perl Makefile.PL && make test && make install

I'm beginning to think that entropy is enclosing around the Great Camel.

About this blog

The taskboy blog is a exploration of computer technology by Joe Johnston. Topics of posts include practical examples Perl, PHP, Python and Java as well as book reviews, industry insights and miscellaneous good stuff.

Current Status

INTR40

Posted: Thu Aug 26 10:13:27 +0000 2010