安装Math :: Pari时出错

时间:2015-08-07 07:11:46

标签: perl module cpan cpanm

我正在尝试安装Math :: Pari模块,但收到错误。

我在Windows Server 2012R2上安装,我当前安装了32位的Strawberry perl v5.18.4.1。

实际上Math :: Pari是Net :: SSH :: W32Perl的依赖项,我想安装该模块。

以下是错误日志。请给我一步一步的安装程序。

cpanm (App::cpanminus) 1.7039 on perl 5.018004 built for MSWin32-x64-multi-thread
Work directory is C:\Users\script/.cpanm/work/1438929213.2276
You have make C:\strawberry\c\bin\dmake.exe
You have LWP 6.08
Falling back to Archive::Tar 2.02
Searching Math::Pari () on cpanmetadb ...
--> Working on Math::Pari
Fetching http://www.cpan.org/authors/id/I/IL/ILYAZ/modules/Math-Pari-2.010808.zip
-> OK
Unpacking Math-Pari-2.010808.zip
Entering Math-Pari-2.010808/
Checking configure dependencies from META.json
Checking if you have ExtUtils::MakeMaker 6.58 ... Yes (6.98)
Configuring Math-Pari-2.010808
Running Makefile.PL
Did not find GP/PARI build directory around.

Apparently, you are running a 64-bit Perl built with MicroSoft's compilers.
GP/PARI (at least the versions I know how to work with, 2.1.* and 2.3.*)
cannot be built in this environment.  I won't auto-download GP/PARI.

If you believe that this message is printed erroneously, please report
(see files README and INSTALL), and put force_download on the command line:
   perl Makefile.PL force_download

One can rerun Makefile.PL after fetching GP/PARI archive (e.g., pari-2.1.7.tgz,
or pari-2.3.4.tar.gz) manually to the current directory, or a (grand)parent
directory of the current directory.

  [Keep in mind that the numbers "inside version" of Math::Pari module
   correspond to the last versions of GP/PARI it was tested with (additionally,
   2.0108* works best with the last 2.1.* version, 2.1.7).

   As an alternative to having archive in CWD or its (grand)parent, specify
       pari_tgz=PATH_TO_TAR_GZ
   option to Makefile.PL.

   There is no need to extract the archive, or build GP/PARI; but if you
   have it extracted [and patched, if needed], you may specify
       paridir=PATH_TO_DIST_DIR
   option to Makefile.PL instead of `pari_tgz'.  However, in this case
   the files WON'T be auto-patched.

   As a last-resort solution, there is also a possibility to use an already
   compiled PARI library.  See the documentation in README and INSTALL files.]

Could not find GP/PARI build directory, please run Makefile.PL
with paridir=/directory option.
-> N/A
-> FAIL Configure failed for Math-Pari-2.010808. See C:\Users\script\.cpanm\work\1438929213.2276\build.log for details.

2 个答案:

答案 0 :(得分:2)

我想我会在他们自己的Math :: Pari安装在Strawberry Perl下失败后,为来自Google搜索的人添加一张便条。 这对我有用(草莓5.22):

一个。从cpan shell开始尝试install Math::Pari

B中。下载pari-2.1.7并将解压缩的文件夹pari-2.1.7放在(0)中创建的cpan build文件夹中。默认情况下,它位于C:\ Strawberry \ cpan \ build

下进行。perl Makefile.PL Configure machine=none

d。 dmake

电子。 dmake install

答案 1 :(得分:0)

它基本上意味着不支持64位版本的perl。这也意味着,如果您确定自己运行的32位版本被错误地检测为64位,则可以尝试打开命令行然后执行

cd C:\Users\script\.cpanm\work\1438929213.2276\
perl Makefile.PL force_download