Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Programming / Perl / December 2007



Tip: Looking for answers? Try searching our database.

The Agony of GMP

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Dennis Putnam - 19 Dec 2007 14:32 GMT
I am trying to install Net::SFTP and it has been a major trial of  
patience. I finally get it working on one of my servers and now am  
trying to get it on another. Unfortunately I have run into a brick  
wall on the 2nd server (both are running 10.4.10) with no clue why  
they are different. The crux of the problem is that I cannot install  
Math::BigInt::GMP on this server. It appears there is a problem with  
the installer but yet this did not happen on the other server.

They key on the other server was to install GMP using macports 'port'  
command. I did the same on this server and all seemed to go well  
until I tried to install BigInt. I am getting the following:

Running make for C/CH/CHIPT/Math-GMP-2.04.tar.gz
  Has already been unwrapped into directory /Users/admin/.cpan/build/
Math-GMP-2.04-nSlAjY
  Has already been made
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"  
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/gmppm......Can't load '/Users/admin/.cpan/build/Math-GMP-2.04-
nSlAjY/blib/arch/auto/Math/GMP/GMP.bundle' for module Math::GMP:  
dlopen(/Users/admin/.cpan/build/Math-GMP-2.04-nSlAjY/blib/arch/auto/
Math/GMP/GMP.bundle, 2): Symbol not found: ___gmpz_mul_2exp
  Referenced from: /Users/admin/.cpan/build/Math-GMP-2.04-nSlAjY/
blib/arch/auto/Math/GMP/GMP.bundle
  Expected in: dynamic lookup
at t/gmppm.t line 7
Compilation failed in require at t/gmppm.t line 7.
BEGIN failed--compilation aborted at t/gmppm.t line 7.
t/gmppm...... Dubious, test returned 255 (wstat 65280, 0xff00)
No subtests run

Can someone help me out with this? TIA.
Dan Kogai - 19 Dec 2007 14:40 GMT
Dennis & those who suffer the same prob,

If you are on Intel Macs, try recompiling & reinstalling GMP as follows:

tar jxvf gmp-4.2.1.tar.bz2
cd gmp-4.2.1/mpn/x86
rm *dive_1* */*dive_1* */*/*dive_1* */*mode1o* */*/*mode1o*
cd ../..
sh configure --build=i686-apple-darwin --enable-cxx
make
make check
sudo make install

I also blogged this issue as follows (it's in Japanese, though)

http://blog.livedoor.jp/dankogai/archives/50712932.html

Hope it helps.

Dan the Frequent User of BigNum

> I am trying to install Net::SFTP and it has been a major trial of  
> patience. I finally get it working on one of my servers and now am  
[quoted text clipped - 30 lines]
>
> Can someone help me out with this? TIA.
Dennis Putnam - 19 Dec 2007 15:18 GMT
Thanks but no, this is a PPC (G5) Xserve. I can't read Japanese.

What really bothers me is that my other server (PPC (G4)) did not  
have this problem. Why the difference? Surely the processor doesn't  
matter and its older anyway.

On Dec 19, 2007, at 9:40 AM, Dan Kogai wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
[quoted text clipped - 65 lines]
> =yDP5
> -----END PGP SIGNATURE-----
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.