无法安装 Math::Pari 模块

Unable to install Math::Pari module

我正在尝试安装 Crypt::Random 模块,一个密码安全的随机数生成器,并说它需要 Math::Pari 2.001802,cpan.org 不提供,但说它是可从另一个 URL 获得,但不起作用。无论如何我都尝试安装它们并遇到了这个问题:

C:\Users\Jlinne\Documents>                    cpanm Crypt::Random
    --> Working on Crypt::Random
    Fetching http://www.cpan.org/authors/id/V/VI/VIPUL/Crypt-Random-1.25.tar.gz ... OK
    Configuring Crypt-Random-1.25 ... OK
    ==> Found dependencies: Math::Pari
    --> Working on Math::Pari
    Fetching http://www.cpan.org/authors/id/I/IL/ILYAZ/modules/Math-Pari-2.01080900.zip ... OK
    Configuring Math-Pari-2.01080900 ... N/A
    ! Configure failed for Math-Pari-2.01080900. See C:\Users\Jlinne\.cpanm\work76250290.12460\build.log for details.
    ! Installing the dependencies failed: Module 'Math::Pari' is not installed
    ! Bailing out the installation for Crypt-Random-1.25.

C:\Users\Jlinne\Documents>                    cpanm Math::Pari
    --> Working on Math::Pari
    Fetching http://www.cpan.org/authors/id/I/IL/ILYAZ/modules/Math-Pari-2.01080900.zip ... OK
    Configuring Math-Pari-2.01080900 ... N/A
    ! Configure failed for Math-Pari-2.01080900. See C:\Users\Jlinne\.cpanm\work76250325.1340\build.log for details.

build.log 对我也没有帮助,还有其他可能的方法可以成功安装此模块吗?谢谢。

您必须共享 build.log 文件。否则我们无法检查导致失败的原因。

顺便说一句,Math::Pari 你需要 PARI 库。 从 2.0 版开始,此模块不包含 PARI 库

由于您正在尝试安装 Math-Pari-2.01080900,因此您首先必须安装 PARI 库。

http://pari.math.u-bordeaux.fr/download.html

获取

如果您可以使用 32 位 Perl,您可以使用 32 位 Strawberry Perl,它已经安装了 Math::Pari 和 Crypt::Random 模块。

不幸的是,Strawberry Perl 的 64 位版本不包含这些模块中的任何一个。在这种情况下,您必须遵循 Chankey Pathak 关于安装 PARI 库的建议才能安装 Math::Pari 模块。