perl – 安装时出现Math :: GMP错误
发布时间:2020-12-15 21:57:57 所属栏目:大数据 来源:网络整理
导读:我试图安装Math :: GMP,但它一直在失败,我不知道从哪里开始.这就是我输入的内容,这里是指向日志文件的输出: [root@confeng Math-GMP-2.06-VEVNp7]# cpanm Math::GMP-- Working on Math::GMPFetching http://www.cpan.org/authors/id/T/TU/TURNSTEP/Math-GMP
我试图安装Math :: GMP,但它一直在失败,我不知道从哪里开始.这就是我输入的内容,这里是指向日志文件的输出:
[root@confeng Math-GMP-2.06-VEVNp7]# cpanm Math::GMP --> Working on Math::GMP Fetching http://www.cpan.org/authors/id/T/TU/TURNSTEP/Math-GMP-2.06.tar.gz ... OK Configuring Math-GMP-2.06 ... OK Building and testing Math-GMP-2.06 ... FAIL ! Installing Math::GMP failed. See /root/.cpanm/build.log for details. [root@confeng Math-GMP-2.06-VEVNp7]# 我检查了日志,我不知道我应该有什么结构 cpanm (App::cpanminus) 1.5011 on perl 5.008008 built for i386-linux-thread-multi Work directory is /root/.cpanm/work/1336128898.6464 You have make /usr/bin/make You have /usr/bin/wget You have /bin/tar: tar (GNU tar) 1.15.1 You have /usr/bin/unzip Searching Math::GMP on cpanmetadb ... --> Working on Math::GMP Fetching http://www.cpan.org/authors/id/T/TU/TURNSTEP/Math-GMP-2.06.tar.gz -> OK Unpacking Math-GMP-2.06.tar.gz Entering Math-GMP-2.06 Checking configure dependencies from META.yml Configuring Math-GMP-2.06 Running Makefile.PL Checking if your kit is complete... Looks good Writing Makefile for Math::GMP -> OK Finding PREREQ from Makefile ... Building and testing Math-GMP-2.06 cp lib/Math/GMP.pm blib/lib/Math/GMP.pm AutoSplitting blib/lib/Math/GMP.pm (blib/lib/auto/Math/GMP) /usr/bin/perl /usr/lib/perl5/5.8.8/ExtUtils/xsubpp - typemap /usr/lib/perl5/5.8.8/ExtUtils/typemap -typemap typemap GMP.xs > GMP.xsc && mv GMP.xsc GMP.c gcc -c -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/inc$ GMP.xs:4:17: error: gmp.h: No such file or directory GMP.xs: In function aconstanta: GMP.xs:49: warning: label anot_therea defined but not used GMP.c: In function aXS_Math__GMP_new_from_scalara: GMP.c:93: error: ampz_ta undeclared (first use in this function) GMP.c:93: error: (Each undeclared identifier is reported only once GMP.c:93: error: for each function it appears in.) GMP.c:93: error: aRETVALa undeclared (first use in this function) GMP.xs:70: warning: implicit declaration of function ampz_init_set_stra GMP.c: In function aXS_Math__GMP_new_from_scalar_with_basea: GMP.c:114: error: ampz_ta undeclared (first use in this function) GMP.c:114: error: aRETVALa undeclared (first use in this function) GMP.c: In function aXS_Math__GMP_destroya: GMP.c:133: error: ampz_ta undeclared (first use in this function) 解决方法
是重要的部分. 您必须安装libgmp的开发文件/标头.在我的openSUSE系统上,相关文件是/usr/include/gmp.h,该包名为gmp-devel.在Debian /派生系统上,该包称为libgmp3-dev. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |