Hi Dave!
On Thursday 25 Feb 2010 08:14:11 Dave Tang wrote:
> Dear list,
>
> I'm trying to use Net::SSH::Perl, but it requires the Math::GMP module. I
> have installed a GMP library (required for Math::GMP) but when I try to
> install Math::GMP I get an error. Here's the transcript. May someone shed
> some light?
First of all - what is your Operating System, Linux/etc. Distribution and
version. There may be an easier way to install all this there which also won't
pollute your filesystem.
Now on to your problem:
>
> perl Makefile.PL
> Checking if your kit is complete...
> Looks good
> Writing Makefile for Math::GMP
>
> -----
>
> make
> cp lib/Math/GMP.pm blib/lib/Math/GMP.pm
> AutoSplitting blib/lib/Math/GMP.pm (blib/lib/auto/Math/GMP)
> /usr/bin/perl /usr/lib/perl5/5.8.8/ExtUtils/xsubpp -typemap
> /usr/lib/perl5/5.8.8/ExtUtils/typemap -typemap typemap GMP.xs > GMP.xsc
> && mv GMP.xsc GMP.c
> gcc -c -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe
> -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -Wall
> -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
> --param=ssp-buffer-size=4 -m64 -mtune=generic -DVERSION=\"2.06\"
> -DXS_VERSION=\"2.06\" -fPIC
> "-I/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE" GMP.c
> GMP.xs: In function âconstantâ:
> GMP.xs:49: warning: label ânot_thereâ defined but not used
> GMP.c: At top level:
> GMP.xs:35: warning: ânot_hereâ defined but not used
> Running Mkbootstrap for Math::GMP ()
> chmod 644 GMP.bs
> rm -f blib/arch/auto/Math/GMP/GMP.so
> LD_RUN_PATH="/usr/lib64" gcc -shared -O2 -g -pipe -Wall
> -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
> --param=ssp-buffer-size=4 -m64 -mtune=generic GMP.o -o
> blib/arch/auto/Math/GMP/GMP.so \
> -lgmp \
>
> chmod 755 blib/arch/auto/Math/GMP/GMP.so
> cp GMP.bs blib/arch/auto/Math/GMP/GMP.bs
> chmod 644 blib/arch/auto/Math/GMP/GMP.bs
> Manifying blib/man3/Math::GMP.3pm
>
> -----
>
> make test
> PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
> "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
> t/00_signature.t ... skipped: Test skipped unless environment variable
> RELEASE_TESTING is set
> t/01_gmppm.t ....... Can't load
> '/root/temp/Math-GMP-2.06/blib/arch/auto/Math/GMP/GMP.so' for module
> Math::GMP: libgmp.so.10: cannot open shared object file: No such file or
> directory at
Looks like it cannot find a file called libgmp.so.10 - maybe it's not in
LD_LIBRARY_PATH or it's a dangling symbolic link.
Regards,
Shlomi Fish
--
-----------------------------------------------------------------
Shlomi Fish http://www.shlomifish.org/
Why I Love Perl - http://shlom.in/joy-of-perl
Deletionists delete Wikipedia articles that they consider lame.
Chuck Norris deletes deletionists whom he considers lame.
Please reply to list if it's a mailing list post - http://shlom.in/reply .
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/