Install Math::GMP

Al Pacheco pacheco at
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

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

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

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

ld: fatal: File processing errors. No output written to

collect2: ld returned 1 exit status

*** Error code 1

make: Fatal error: Command failed for target



Can anybody help me with this?









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