Install Math::GMP

Al Pacheco pacheco at fas.harvard.edu
Wed Oct 22 15:40:02 CEST 2003


I am trying to install Math::GMP on my Solaris 9 workstation. (SunOS 5.9
Generic_112233-02 sun4u sparc SUNW,Sun-Blade-100)  I installed perl 5.8.0
and gcc 3.2.2   I was able to install the GMP lib but I get the following
error when I try to make Math::GMP:

 

bash-2.05# perl Makefile.PL 

Writing Makefile for Math::GMP

bash-2.05# make

gcc -B/usr/ccs/bin/ -c    -fno-strict-aliasing -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -O    -DVERSION=\"2.03\"  -DXS_VERSION=\"2.03\" -fPIC
"-I/usr/local/lib/perl5/5.8.0/sun4-solaris/CORE"   GMP.c

Running Mkbootstrap for Math::GMP ()

chmod 644 GMP.bs

rm -f blib/arch/auto/Math/GMP/GMP.so

LD_RUN_PATH="/usr/local/lib" gcc -B/usr/ccs/bin/  -G -L/usr/local/lib GMP.o
-o blib/arch/auto/Math/GMP/GMP.so   -lgmp  

ld: fatal: file /usr/local/lib/libgmp.so: wrong ELF class: ELFCLASS64

ld: fatal: File processing errors. No output written to
blib/arch/auto/Math/GMP/GMP.so

collect2: ld returned 1 exit status

*** Error code 1

make: Fatal error: Command failed for target
`blib/arch/auto/Math/GMP/GMP.so'

 

 

Can anybody help me with this?

 

Regards,

 

Al

 

 

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: /list-archives/gmp-discuss/attachments/20031022/31d5b6d6/attachment.htm


More information about the gmp-discuss mailing list