在 cpan 终端中为 Math::Pari 做什么

What to do for Math::Pari in cpan terminal

我发现了一个关于安装问题 Math::Pari、here 的相关问题。除了这是 shell 的,而且我有 cpanm。我下载了最新版本的 Pari,Pari 2-7-6。我应该在哪里解压 C:\Program Files (x86)\Pari-2-7-6 中的文件才能在 perl 中成功安装 Math::Pari(但不是在 cpan shell 中)?提前致谢。

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\work76648581.10216\build.log for details.

Windows 上有一个简单的方法:

  1. 下载并解压模块:https://metacpan.org/pod/Math::Pari
  2. cd进入解压时创建的目录
  3. perl Makefile.PL force_download <- 这会将内容下载到正确的位置
  4. dmake
  5. dmake install