无法安装Math :: Pari模块

时间:2016-10-12 05:40:38

标签: perl perl-module pari

我正在尝试安装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\work\1476250290.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\work\1476250325.1340\build.log for details.

build.log也没有帮助我,还有其他任何可能的方法来成功安装这个模块?谢谢。

2 个答案:

答案 0 :(得分:1)

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

BTW Math::Pari你需要PARI库。 从2.0版开始,此模块没有包含PARI库

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

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

获取

答案 1 :(得分:0)

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

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