- iOS/Objective-C 元类和类别
- objective-c - -1001 错误,当 NSURLSession 通过 httpproxy 和/etc/hosts
- java - 使用网络类获取 url 地址
- ios - 推送通知中不播放声音
我已经从
下载了 Math-Pari-2.010709.tar.gzhttp://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
最佳答案
这些错误通常是由于无法找到其链接到的库的 header 。来自 https://metacpan.org/pod/Math::Pari :
PARI Starting from version 2.0, this module comes without a PARI library included. For the source of PARI library see ftp://megrez.math.u-bordeaux.fr/pub/pari.
您需要下载库,以便模块可以针对它进行编译。
关于linux - 为 Linux 构建 Math-Pari-2.010709,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25269796/
我已经在 中搜索了一些关于如何使用 PARI 库的教程。 C程序 ,但不幸的是,我只找到了在命令行界面中使用 GP 包的通用教程。 有人可以帮忙吗?例如,我想初始化一个 3x3 矩阵并找到它的 100
在 Perl 5.8.5 上,我看到了问题中列出的错误。 我正在运行这些版本模块: 数学::BigInt: 1.89 数学::BigInt::FastCalc: 0.19 数学::BigInt::GM
这个问题已经有答案了: How can you determine what Perl module is causing "undefined symbol: Perl_Tstack_sp_ptr?
Pari/GP是与数论相关的函数的优秀库。问题是周围似乎没有最新的 python 包装器,(pari-python 使用旧版本的 pari)我想知道是否有人知道其他类似于pari 或使用 pari 的
如何在PARI/GP中创建跨越每个级别的多行的嵌套循环?我经常需要在循环中做很多事情,并且出于可读性的考虑,我不喜欢在单行上编写循环。对于一个变量的循环,我一直在这样做: for(i=1,10,{
我正在尝试让 Idiorm/Paris 与我的 PHP 项目一起工作。我的表对象位于名为项目的文件夹/命名空间中,当我尝试运行 Idiorm/Paris 时,它将“项目”名称添加到列中。 "Uncau
我刚刚在使用 Idiorm/Paris 的应用程序中添加了一些连接,我发现当我通过 Model::factory() 进行搜索时,返回的对象是从连接对象获取 ID,而不是“父对象” ' 对象。 我如何
我找到了一个 sequence of interest在 OEIS 中,我想在 C++ 中为我正在研究的编程竞赛解决方案生成相同的序列。 但是我在理解序列页面中给出的程序如何工作时遇到了障碍。 这是页
我需要 Pari C 库中 t_REAL 的自定义精度位。我已经尝试更改 BITS_IN_LONG 变量并确保我更改了我的 GEN 变量的精度指数,但我仍然只得到一个小数点后 39 位的实数。是否存在
我是 PARI C 库的新手。 如何对 GEN 类型变量执行按位(“和”或“或”)运算? 最佳答案 使用 gbitand 和 gbitor ? 在 arith2.c 中声明,参见 this link
我正在使用 Paris (它建立在 Idiorm 之上)。 我有以下模型类(受 documentation on github 启发的示例): belongs_to('User'); } }
我无法使用 php idiorm/paris 获取 has_many 查询的结果。遵循 paris site 中的示例帖子的 has_many 结果作为对象返回。 太好了,我可以运行对象并访问各个方法
我在我的 PHP 项目中使用 Idiorm 和 Paris。 我想向我的 mysql 数据库添加一些带有空值的条目。 例如: $openingtime->setBegin(null); $openin
我知道在 PARI/GP 中,函数 qflll 在一组碱基上执行 LLL 算法。但是,我可以查看 PARI/GP 库中 qflll 的代码吗?或者有人知道 LLL 算法在 PARI/GP 库中是如何工
好吧,所以a couple days ago我决定尝试为 PARI 库编写一个原始包装器。从那时起,我一直在使用 ctypes 库加载 dll 并使用类似于以下的代码访问包含的函数: from cty
我有 PARI 的所有源代码,但我不确定如何使用它/生成 pari 库。到目前为止,我不得不使用 #include 为诸如复数之类的东西添加几个头文件。 , 所以我认为使用 PARI 的想法是一样的
我想调用PARI/GP从 Python 仅计算函数 nextprime(n) 我定义的不同 n。不幸的是我无法获得pari-python安装所以我想我会在 Python 中通过 os.system 使
我已经定义了 arity 1 的几个函数,比如说 func1(-)和 func2(-) .我已经对它们进行了测试,发现它们确实在做它们应该做的事情。 我想定义第三个函数,比如说 func3(-) ,
我编写了一个 perl 脚本,它在我的环境中运行良好,但在我的客户端环境中它失败了: Can't locate loadable object for module Math::Pari in @IN
我已经定义了 arity 1 的几个函数,比如说 func1(-)和 func2(-) .我已经对它们进行了测试,发现它们确实在做它们应该做的事情。 我想定义第三个函数,比如说 func3(-) ,
我是一名优秀的程序员,十分优秀!