Ошибка при установке Math :: Pari

Я пытаюсь установить модуль 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.

person Prashant Deore    schedule 07.08.2015    source источник
comment
В первой строке вашего журнала написано cpanm (App::cpanminus) 1.7039 on perl 5.018004 built for MSWin32-x64-multi-thread ... Обратите внимание на MSWin32- x64 -multi-thread.   -  person Sinan Ünür    schedule 07.08.2015


Ответы (2)


Я подумал, что добавлю примечание для всех, кто пришел сюда в результате поиска в Google после того, как их собственная установка Math :: Pari не удалась под Strawberry Perl. Вот что у меня сработало (Strawberry 5.22):

А. из оболочки cpan, пробовал install Math::Pari. это не удалось

Б. Загрузил pari-2.1.7 и поместил извлеченную папку pari-2.1.7 в папку сборки cpan, которая была создана в (0). По умолчанию он находится в C: \ Strawberry \ cpan \ build.

C.perl Makefile.PL Configure machine=none

D. dmake

E. dmake install

person Adam Russell    schedule 24.06.2016

По сути, это означает, что 64-битные версии Perl не поддерживаются. Это также означает, что если вы уверены, что используете 32-разрядную версию, ошибочно определенную как 64-разрядную, вы можете попробовать открыть командную строку, а затем выполнить

cd C:\Users\script\.cpanm\work\1438929213.2276\
perl Makefile.PL force_download
person ChatterOne    schedule 07.08.2015