Hi there, I installed GNU GMP for windows and placed GMP.pm in the
directories indicated below, any ideas why perl spits this error back
at me ?? Is there something specific I need to do ?
Thanks for any assistance..
Can't locate loadable object for module GMP in @INC (@INC contains:
c:/Perl/lib c:/Perl/s
ite/lib .) at test.pl line 46
Compilation failed in require at test.pl line 46.
BEGIN failed--compilation aborted at test.pl line 46.
I went to your webpage and it failed
http://www.kalinabears.com.au/w32perl/math_gmp.html. I am using
ActiveState Perl 5.8.3 (latest) and cant get GMP to work on Windows
XP. Here are my results:
A). Math::GMP for Win32 Perl -
1 - ppm install Math-GMP.ppd - failed
2- copied In blib, find the files GMP.dll and GMP.pm.
Copy GMP.pm to your perl/site/lib/math/ folder.
Copy GMP.dll to your perl/site/lib/auto/math/gmp folder.
3- test: perl gmppm.t windows Popup ERROR message: "Failed to start
b/c libgmp-3.dll was not found, reinstalling may fix problem"
B).GMP for Win32 Perl
1- C:\temp\temp1\gmp_perl\gmp_perl>ppm install GMP.ppd
Note: Package 'GMP' is already installed.
2- perl test.pl - windows Popup ERROR message: "Failed to start b/c
libgmp-3.dll was not found, reinstalling may fix problem"
C).Math::BigInt::GMP for Win32 Perl
1 - ppm install Math-BigInt-GMP.ppd
result:
====================
Install 'Math-BigInt-GMP' version 1.13 in ActivePerl 5.8.3.809.
====================
Error: error downloading
'file://localhost/C%7C/temp/temp1/gmp_perl/math_bigint_gmp/MSWin
32-x86-multi-thread-5.8/Math-BigInt-GMP.tar.gz': 404 File
`C:\temp\temp1\gmp_perl\math_bi
gint_gmp\MSWin32-x86-multi-thread-5.8\Math-BigInt-GMP.tar.gz' does not
exist
2 - Copy GMP.pm to your perl/site/lib/math/bigint/ folder. - NO SUCH
FOLDER EXISTS
3- works: perl bigfltpm.t
Doesnt work: perl bigintpm.t
# Test 958 got: <UNDEF> (bigintpm.inc at line 196 fail #943)
# Expected: '4'
# Tried: '$x = Math::BigInt->new("-4");$y = Math::BigInt->new('7');$x
& $y;'
Can't locate auto/Math/BigInt/GMP/_zero.al in @INC (@INC contains:
.../blib/arch ../lib c
:/Perl/lib c:/Perl/site/lib .) at c:/Perl/lib/Math/BigInt.pm line 725
Compilation failed in require at bigintpm.t line 23, <DATA> line 1050.
Doesnt work: perl bigintg.t
C:\temp\temp1\gmp_perl\math_bigint_gmp>perl bigintg.t
Can't locate loadable object for module Math::BigInt::GMP in @INC
(@INC contains: ../blib
/arch ../lib c:/Perl/lib c:/Perl/site/lib .) at bigintg.t line 14
Compilation failed in require at bigintg.t line 14.
BEGIN failed--compilation aborted at bigintg.t line 14.