Re: The Agony of GMP

[email protected] (Dan Kogai)
Newsgroups perl.macosx
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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

On Dec 19, 2007, at 23:32 , Dennis Putnam wrote:

> 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.
>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)

iD8DBQFHaS1eErJia/WXtBsRAnDCAJ9YBwhGxvfWewPEJIeC6DXouJOoxACfeDdo
okzCKgH5aVbdmBxlDnVG69g=
=yDP5
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.