emerlyn has asked for the wisdom of the Perl Monks concerning the following question:
Hello,
I am trying to install Math::Pari module (needed to install Net::SFTP) in a preferred diretory and came across these errors.
Perl version: 5.10.1
Environment: AIX
PARI/GP version: 2.5.3
$ perl Makefile.PL machine=none $ make cd libPARI && make LIBPERL_A="libperl.a" LINKTYPE="dynamic" OP +TIMIZE="-O" PREFIX="/usr/opt/Perl5_10" PASTHRU_DEFINE="" PASTHRU_INC= +"" cc -q32 -c -I ../../pari-2.5.3/src -I ../../pari-2.5.3/src/he +aders -I ../../pari-2.5.3/src/graph -I . -D_ALL_SOURCE -D_ANSI_C_SOU +RCE -D_POSIX_SOURCE -qmaxmem=-1 -qnoansialias -DUSE_NATIVE_DL OPEN -I/usr/local/include -q32 -D_LARGE_FILES -qlonglong -O -DVERSI +ON=\"\" -DXS_VERSION=\"\" -Derr=pari_err -DDYNAMIC_PLOTTING -o ells +ea.o ../../pari-2.5.3/src/modules/ellsea.c <b>"../../pari-2.5.3/src/headers/pari.h", line 59.12: 1506-296 (S) #in +clude file "mpinl.h" not found. </b> "../../pari-2.5.3/src/modules/ellsea.c", line 840.49: 1506-018 (S) Ope +rand of indirection operator must be a pointer expression. "../../pari-2.5.3/src/modules/ellsea.c", line 1343.44: 1506-018 (S) Op +erand of indirection operator must be a pointer expression.
I was able to fix this error by modifying /pari-2.5.3/src/headers/pari.h line 59 to point it to /include/pari/mpinl.h
When I tried make again, I got this error...
$ make "../../pari-2.5.3/src/language/paricfg.c", line 18.31: 1506-221 (S) In +itializer must be a valid constant expression. "../../pari-2.5.3/src/language/paricfg.c", line 19.33: 1506-221 (S) In +itializer must be a valid constant expression. "../../pari-2.5.3/src/language/paricfg.c", line 21.34: 1506-221 (S) In +itializer must be a valid constant expression. make: 1254-004 The error code from the last command is 1. Stop. make: 1254-004 The error code from the last command is 2. Stop.
There seems to be a problem with the generated paricfg.h so I copied the entire content of /include/pari/paricfg.h to /Math-Pari-2.01080605/libPARI/paricfg.h.
Ultimately, after all the tweaks I've done, I have gotten to this error...
"Pari.xs", line 550.38: 1506-045 (S) Undeclared identifier ordvar. "Pari.xs", line 768.46: 1506-026 (S) Number of initializers cannot be +greater than the number of aggregate members. "Pari.xs", line 769.52: 1506-026 (S) Number of initializers cannot be +greater than the number of aggregate members. "Pari.xs", line 937.21: 1506-045 (S) Undeclared identifier TWOPOTBYTES +_IN_LONG. "Pari.xs", line 1036.55: 1506-045 (S) Undeclared identifier BYTES_IN_L +ONG. "Pari.xs", line 1118.9: 1506-236 (W) Macro name BL_HEAD has been redef +ined. "Pari.xs", line 1118.9: 1506-358 (I) "BL_HEAD" is defined on line 29 o +f ../pari-2.5.3/src/language/anal.h. "Pari.xs", line 1290.23: 1506-280 (W) Function argument assignment bet +ween types "void*" and "const unsigned char*" is not allowed. "Pari.xs", line 1292.16: 1506-280 (W) Function argument assignment bet +ween types "void*" and "const unsigned char*" is not allowed. "Pari.xs", line 1321.1: 1506-343 (S) Redeclaration of allocatemem diff +ers from previous declaration on line 1887 of "/usr/opt/Perl5_10/pari +/include/pari/paridecl.h". "Pari.xs", line 1321.1: 1506-050 (I) Return type "unsigned long" in re +declaration is not compatible with the previous return type "void". "Pari.xs", line 1973.24: 1506-280 (W) Function argument assignment bet +ween types "unsigned char*" and "const unsigned char*" is not allowed +. "Pari.xs", line 2001.24: 1506-280 (W) Function argument assignment bet +ween types "unsigned char*" and "const unsigned char*" is not allowed +. "Pari.xs", line 2031.24: 1506-280 (W) Function argument assignment bet +ween types "unsigned char*" and "const unsigned char*" is not allowed +. "Pari.xs", line 2061.24: 1506-280 (W) Function argument assignment bet +ween types "unsigned char*" and "const unsigned char*" is not allowed +. "Pari.xs", line 3462.37: 1506-045 (S) Undeclared identifier EpUSER. "Pari.xs", line 3574.21: 1506-068 (W) Operation between types "unsigne +d char*" and "const unsigned char*" is not allowed. "Pari.xs", line 3624.29: 1506-045 (S) Undeclared identifier functions_ +basic. make: 1254-004 The error code from the last command is 1.
Can someone help me with this? Note that I cannot use cpan to automatically pull all dependent modules because of a firewall setting I cannot change.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Math::Pari Installation Error
by salva (Canon) on Apr 25, 2013 at 12:41 UTC | |
by emerlyn (Initiate) on Apr 29, 2013 at 10:54 UTC |