问题描述
我正在尝试安装 Crypt :: Random 模块,该模块采用密码方式安全的随机数生成器,并说它需要Math :: Pari 2.001802,但cpan.org不能使用它,但是说它可以从该其他URL使用,这是行不通的.无论如何,我都试图安装它们,并遇到了这个问题:
I am trying to install Crypt::Random module, a cryptographically secure random number generator, and says it requires Math::Pari 2.001802, which is not availible from cpan.org, but says it is available from this other URL, which does not work. I tried to install them both anyway and encountered this problem:
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也不能帮助我,是否有其他可能的方法可以成功安装此模块?谢谢.
The build.log does not help me either, any other possible ways to install this module successfully? Thanks.
推荐答案
您将必须共享build.log
文件.没有这些,我们将无法检查导致故障的原因.
You will have to share the build.log
file. Without that we cannot check what caused the failure.
对于 Math :: Pari 的BTW,您需要PARI库. 从2.0版开始,此模块不包含PARI库.
BTW for Math::Pari you need PARI library. Starting from version 2.0, this module comes without a PARI library included.
由于您要安装Math-Pari-2.01080900,因此您首先必须安装PARI库.
Since you are trying to install Math-Pari-2.01080900, therefore you will first have to install PARI library.
从 http://pari.math.u-bordeaux.fr/download中获取.html
这篇关于无法安装Math :: Pari模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!