【问题标题】:Unable to install Math::Pari module无法安装 Math::Pari 模块
【发布时间】:2016-10-12 05:40:37
【问题描述】:

我正在尝试安装 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 也对我没有帮助,还有其他可能的方法来成功安装这个模块吗?谢谢。

【问题讨论】:

    标签: perl perl-module pari


    【解决方案1】:

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

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

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

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

    【讨论】:

    • 我可以附加 .log 文件,虽然它会很长,我应该从pari.math.u-bordeaux.fr/download.html 安装哪个 Math Pari(s) 以从 cpan 获取 Math::Pari?感谢您帮助我?
    • 如果您希望我附上这两个 .log 文件,请告诉我
    • @J.Linne:从Self-installing distributions for Windows 部分选择稳定的。
    • cpan 的库如何识别我安装了 Pari 2-7-6。他们在两个不同的地方?当我尝试从 cpan 安装 Math::Pari 时,在安装 Pari 2-7-6 后仍然给我相同的输出。我在问题中发布了他们的目录。
    • 再次感谢您能帮我解决这个问题,因为我有 Pari 2-7-6。
    【解决方案2】:

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

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-05-15
      • 2019-06-07
      • 2019-07-07
      • 2014-09-14
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多