Posted on 2009-04-10 12:53:15-07 by gillisjo
Math:Pari on Tru64
I'm trying to build Perl module Math-Pari-2.010801 on a Compaq Tru64 server.
It failed when building libPARI with the following error :
cp libPARI.dumb.pod blib/lib/Math/libPARI.dumb.pod cp PariInit.pm blib/lib/Math/PariInit.pm cp Pari.pm blib/lib/Math/Pari.pm cp libPARI.pod blib/lib/Math/libPARI.pod cd libPARI && make LIB="" LIBPERL_A="libperl.a" LINKTYPE="dynamic" PREFIX="/usr/lib/perl-5.8.0" OPT +IMIZE="-O4" PASTHRU_DEFINE="" PASTHRU_INC="" /usr/bin/perl -wle0 > pariinl.h /usr/bin/perl -pe1 .././pari-2.1.7/src/kernel/none/asm0.h .././pari-2.1.7/src/kernel/none/level1.h + >> pariinl.h cc -c -I .././pari-2.1.7/src -I.././pari-2.1.7/src/headers -I.././pari-2.1.7/src/graph -I. -fprm +d -ieee -std -fprm d -ieee -DLANGUAGE_C -O4 -DVERSION=\"\" -DXS_VERSION=\"\" -Derr=pari_err - +DDYNAMIC_PLOTTING -o es.o .././pari-2.1.7/src/language/es.c cc: Severe: .././pari-2.1.7/src/headers/pari.h, line 25: Cannot find file <stdlib.h> specified in # +include directive. (noinclfilef) # include <stdlib.h> /* malloc, free, atoi */ -----^ *** Exit 1 Stop. *** Exit 1 Stop.
I found on the internet that you better put a space between -I and the header path, so I changed the Makefile.PL and libPARI/Makefile.pl and added a space.
INC => $extra_inc . ' -I $(PARI_DIR)/src/headers -I $(PARI_DIR)/src/graph -I .'
I ran perl Makefile.PL again, and I've got the following error :
# make cp libPARI.dumb.pod blib/lib/Math/libPARI.dumb.pod cp PariInit.pm blib/lib/Math/PariInit.pm cp Pari.pm blib/lib/Math/Pari.pm cp libPARI.pod blib/lib/Math/libPARI.pod cd libPARI && make LIB="" LIBPERL_A="libperl.a" LINKTYPE="dynamic" PREFIX="/usr/lib/perl-5.8.0" OPT +IMIZE="-O4" PASTHRU_DEFINE="" PASTHRU_INC="" /usr/bin/perl -wle0 > pariinl.h /usr/bin/perl -pe1 .././pari-2.1.7/src/kernel/none/asm0.h .././pari-2.1.7/src/kernel/none/level1.h + >> pariinl.h cc -c -I .././pari-2.1.7/src -I .././pari-2.1.7/src/headers -I .././pari-2.1.7/src/graph -I . -fp +rm d -ieee -std -fprm d -ieee -DLANGUAGE_C -O4 -DVERSION=\"\" -DXS_VERSION=\"\" -Derr=pari_er +r -DDYNAMIC_PLOTTING -o es.o .././pari-2.1.7/src/language/es.c cc: Severe: .././pari-2.1.7/src/language/es.c, line 21: Cannot find file "pari.h" specified in #inc +lude directive. (noinclfilef) #include "pari.h" -^ *** Exit 1 Stop. *** Exit 1 Stop.
Can anyone help me with this ?
# perl -v This is perl, v5.8.0 built for alpha-dec_osf Copyright 1987-2002, Larry Wall Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5 source kit. Complete documentation for Perl, including FAQ lists, should be found on this system using `man perl' or `perldoc perl'. If you have access to the Internet, point your browser at http://www.perl.com/, the Perl Home Page. And I use pari-2.1.7 source tree. Best regards, Johan Gillis
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.