Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
October 27, 2009, 8:25 pm
rate this thread
#Same Big Number...
Math::BigInt: couldn't load specified math lib(s), fallback to
Math::BigInt::Calc at -e line 1
As an aside, is it possible to import GMP or Pari from the command
line? -M doesn't play nice with a string of import args:
#OK, can't load module error
"Pari"" is not exported by the Math::BigInt module
Can't continue after import errors at -e line 0
BEGIN failed--compilation aborted.
Re: Math::GMP and Pari Installed, But BigInt Can't Find Them
You also need to install Math::BigInt::GMP and Math::BigInt::Pari. (I
believe the former doesn't actually use the Math::GMP bindings at all,
and instead links with the C library directly.)
This expands to
use Math::BigInt split(/,/,q^@lib,"GMP,Pari"^@);
where '^@' represents a literal zero byte (I bet you didn't know Perl
allowed that as a quote delimiter :)). This is equivalent to
use Math::BigInt 'lib', '"GMP', 'PARI"';
which is not what you meant at all. You can however write
perl -M'Math::BigInt lib => "GMP,Pari"' -e1
and it will work just fine.