我已经下载了 Math-Pari-2.010709.tar.gz 从
http://search.cpan.org/~ilyaz/Math-Pari-2.010709/Pari.pm
并尝试在 Linux 操作系统上安装 pari 库。以下是我的操作系统的详细信息。
LSB_VERSION="core-2.0-noarch:core-3.2-noarch:core-4.0-noarch:core-2.0-x86_64:core-3.2-x86_64:core-4.0-x86_64"
SUSE Linux Enterprise Server 11 (x86_64)
VERSION = 11
PATCHLEVEL = 3
我提取了 zip 文件并执行了 perl Makefile.PL。当我尝试运行 make 测试时,它把我抛到了错误之下。请帮助。我是第一次安装 perl,所以这听起来可能是一个愚蠢的问题。
cd libPARI && make LIBPERL_A="libperl.a" LINKTYPE="dynamic" OPTIMIZE="-O2" PREFIX="/home/fd1123/localperl" PASTHRU_DEFINE="" PASTHRU_INC=""
make[1]: Entering directory `/home/fd1123/build/Math-Pari-2.010709/libPARI'
cc -c -I ../../pari-2.7.1/src -I../../pari-2.7.1/src/headers -I../../pari-2.7.1/src/graph -I. -fwrapv -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -DVERSION=\"\" -DXS_VERSION=\"\" -fPIC -Derr=pari_err -DASMINLINE -DGCC_INLINE -DDYNAMIC_PLOTTING -o rootpol.o ../../pari-2.7.1/src/basemath/rootpol.c
In file included from ../../pari-2.7.1/src/basemath/rootpol.c:20:
../../pari-2.7.1/src/headers/pari.h:56:20: error: parimt.h: No such file or directory
../../pari-2.7.1/src/headers/pari.h:58:21: error: mpinl.h: No such file or directory
../../pari-2.7.1/src/basemath/rootpol.c: In function ‘mydbllog2i’:
../../pari-2.7.1/src/basemath/rootpol.c:378: warning: assignment makes pointer from integer without a cast
../../pari-2.7.1/src/basemath/rootpol.c:381: error: invalid type argument of ‘unary *’ (have ‘int’)
make[1]: *** [rootpol.o] Error 1
make[1]: Leaving directory `/home/fd1123/build/Math-Pari-2.010709/libPARI'
make: *** [libPARI/libPARI.a] Error 2
我从http://pari.math.u-bordeaux.fr/download.html下载了 Pari 库并尝试安装。现在出现错误。请检查。
Making gp in Olinux-x86_64
make[2]: Entering directory `/home/fd1123/sachin_build/pari-2.7.1/Olinux-x86_64'
"/usr/lib/qt3"/bin/moc -o plotQt.moc.cpp ../src/graph/plotQt.c && g++ -c -I. -I../src/headers -D__FANCY_WIN__ -I"/usr/lib/qt3"/include -O3 -Wall -fno-strict-aliasing -fomit-frame-pointer -o plotQt.o ../src/graph/plotQt.c
/bin/sh: /usr/lib/qt3/bin/moc: No such file or directory