moez507 has asked for the wisdom of the Perl Monks concerning the following question:

I am having the following problem installing Math::Pari:

C:\Users\Moez1>cpanm Math::Pari --prompt Set up gcc environment - gcc.exe (rubenvb-4.5.4) 4.5.4 --> Working on Math::Pari Fetching http://www.cpan.org/authors/id/I/IL/ILYAZ/modules/Math-Pari-2 +.01080605.tar.gz ... OK Configuring Math-Pari-2.01080605 ... OK Building and testing Math-Pari-2.01080605 ... Building Math-Pari-2.010 +80605 failed. You can s)kip, r)etry, e)xamine build log, or l)ook ? [s] e FAIL ! You don't seem to have a PAGER :/ Building Math-Pari-2.01080605 failed. You can s)kip, r)etry, e)xamine build log, or l)ook ? [s] l Entering C:/.cpanm/work/1375113149.2244/Math-Pari-2.01080605 with C:\W +indows\system32\cmd.exe Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. All rights reserved.

Here is some environment information:

C:\.cpanm\work\1375113149.2244\Math-Pari-2.01080605>perl -v This is perl 5, version 16, subversion 2 (v5.16.2) built for MSWin32-x +64-multi-thread (with 1 registered patch, see perl -V for more detail) Copyright 1987-2012, Larry Wall Binary build 1602 [296513] provided by ActiveState http://www.ActiveSt +ate.com Built Dec 19 2012 00:07:06 Perl may be copied only under the terms of either the Artistic License + or the GNU General Public License, which may be found in the Perl 5 source ki +t. Complete documentation for Perl, including FAQ lists, should be found +on this system using "man perl" or "perldoc perl". If you have access to + the Internet, point your browser at http://www.perl.org/, the Perl Home Pa +ge.
Could someone please help me with it ?

Replies are listed 'Best First'.
Re: installing Math::Pari on Windows
by salva (Canon) on Jul 30, 2013 at 09:02 UTC
    Frequently the proper response to Math::Pari installation problems is actually to not install it. Why do you need it?

      Hi salva,

      I need to install it because it is a dependency for Net::SSH::Perl , the module i really want to install
        Using Net::SSH::Perl is not a great idea. Besides its dependency hell, the module has been unmaintained for a long time and has several know bugs.

        Nowadays, Net::SSH2 is a much better alternative, or for an easier to use API Net::SSH::Any.

Re: installing Math::Pari on Windows
by arkturuz (Curate) on Jul 29, 2013 at 18:25 UTC
    What's the content of cpanminus' build.log?

    Also, wrap your code output in <code> tags. It's easier to read it. See Writeup Formatting Tips.

      cpanm (App::cpanminus) 1.5021 on perl 5.016002 built for MSWin32-x64-m +ulti-thread Work directory is /.cpanm/work/1375126747.1448 You have make C:\Perl64\site\bin\dmake.exe You have LWP 6.04 Falling back to Archive::Tar 1.90 You have C:\app\client\product\11.2.0\client_1\bin\unzip.exe Searching Math::Pari on cpanmetadb ... --> Working on Math::Pari Fetching http://www.cpan.org/authors/id/I/IL/ILYAZ/modules/Math-Pari-2 +.01080605.tar.gz -> OK Unpacking Math-Pari-2.01080605.tar.gz Entering Math-Pari-2.01080605 Checking configure dependencies from META.yml Checking if you have ExtUtils::MakeMaker 0 ... Yes (6.64) Configuring Math-Pari-2.01080605 Running Makefile.PL Set up gcc environment - gcc.exe (rubenvb-4.5.4) 4.5.4 Did not find GP/PARI build directory around. Non-interactive session, autofetching... Getting GP/PARI from ftp://megrez.math.u-bordeaux.fr/pub/pari/unix/ Not in this directory, now chdir('OLD')... Available beta versions: `2.0.20 2.0.18 2.0.17 2.0.16 2.0.21 2.0.19' Latest supported beta is `pari-2.0.21.beta.tgz' Available golden versions: `2.1.6 2.1.3 2.1.0 2.1.1 2.1.5 2.1.7 1.39.0 +3 2.1.2 2.1.4' Latest supported golden is `pari-2.1.7.tgz' Picking golden version 2.1.7, file pari-2.1.7.tgz Downloading `ftp://megrez.math.u-bordeaux.fr/pub/pari/unix/pari-2.1.7. +tgz'... Downloaded... Extracting... gzip -dc pari-2.1.7.tgz | tar -xvf - 'gzip' is not recognized as an internal or external command, operable program or batch file. Can't un-targz PARI: $!=Bad file descriptor, exitcode=65280. Now retry with "C:\Perl64\bin\perl.exe" "-MArchive::Tar" "-wle" "Arc +hive::Tar->new(shift)->extract()" "pari-2.1.7.tgz" Looking for patches for 2.1.7... Patching... 'patch' is not recognized as an internal or external command, operable program or batch file. cd pari-2.1.7 && patch -p1 < ..\patches\diff_2.1.7_mingw-w64 'patch' is not recognized as an internal or external command, operable program or batch file. ...Could not patch: $?=256, ; continuing anyway... cd pari-2.1.7 && patch -p1 < ..\patches\patch-pari-unnormalized-float 'patch' is not recognized as an internal or external command, operable program or batch file. ...Could not patch: $?=256, ; continuing anyway... cd pari-2.1.7 && patch -p1 < ..\patches\diff_2.1.7_-O 'patch' is not recognized as an internal or external command, operable program or batch file. ...Could not patch: $?=256, ; continuing anyway... cd pari-2.1.7 && patch -p1 < ..\patches\diff_2.1.7_div 'patch' is not recognized as an internal or external command, operable program or batch file. ...Could not patch: $?=256, ; continuing anyway... cd pari-2.1.7 && patch -p1 < ..\patches\diff_2.1.6_align_power_of_2 'patch' is not recognized as an internal or external command, operable program or batch file. ...Could not patch: $?=256, ; continuing anyway... cd pari-2.1.7 && patch -p1 < ..\patches\diff_2.1.7_restart 'patch' is not recognized as an internal or external command, operable program or batch file. ...Could not patch: $?=256, ; continuing anyway... Finished patching... Setting up Math::Pari with Perl 5.016002 on MSWin32 version 5.2; cc=C:\Perl64\site\bin\gcc.exe, gccversion=gcc.exe (rubenvb-4.5.4) 4 +.5.4, cccdlflags=' ', ccflags='-DNDEBUG -DWIN32 -D_CONSOLE -DNO_STRICT -DWIN64 -DCONSERVA +TIVE -DPERL_TEXTMODE_SCRIPTS -DUSE_SITECUSTOMIZE -DPERL_IMPLICIT_CONT +EXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DHASATTRIBUTE -fno-strict-alias +ing -mms-bitfields', optimize='-O2', ld=C:\Perl64\site\bin\g++.exe, ldflags='-L"C:\Perl64\lib\CORE"'. Found GP/PARI build directory in pari-2.1.7 (integer-formatted version 2001007). ### GP/PARI library version 2.1.* has many problems fixed in version +s 2.3.*. ### Especially important are the problems with symbols `hiremainder' + and ### `overflow' - if your build fails and error messages contain thes +e ### words, updating to 2.3.* might allow your use of fast processor- +specific ### assembler code.) ### Switching to 2.3.* should be as simple as giving Makefile.PL an +option ### version23_ok=1 ### (if you or Makefile.PL already downloaded-and-extracted versio +n-2.1.* ### distribution, give an extra option, force_download). ### Alternatively, give option ### paridir=DIRECTORY-of-extracted-distribution ### However, keep in mind: v.2.3.* supports only plotting to PostScr +ipt. ...Generating libPARI/paricfg.h ... Scanning header files... Note (probably harmless): Errors reading from pipe: '', exit=256: C:\P +erl64\site\bin\gcc.exe -E -DWIN32 utils/inc.h 2>&1 Creating libPARI/paricfg.h... 'uname' is not recognized as an internal or external command, operable program or batch file. ...Processor of family `' detected Checking if your kit is complete... Looks good Warning (mostly harmless): No library found for -lm Warning (mostly harmless): No library found for -lkernel32 Warning (mostly harmless): No library found for -luser32 Warning (mostly harmless): No library found for -lgdi32 Warning (mostly harmless): No library found for -lwinspool Warning (mostly harmless): No library found for -lcomdlg32 Warning (mostly harmless): No library found for -ladvapi32 Warning (mostly harmless): No library found for -lshell32 Warning (mostly harmless): No library found for -lole32 Warning (mostly harmless): No library found for -loleaut32 Warning (mostly harmless): No library found for -lnetapi32 Warning (mostly harmless): No library found for -luuid Warning (mostly harmless): No library found for -lws2_32 Warning (mostly harmless): No library found for -lmpr Warning (mostly harmless): No library found for -lwinmm Warning (mostly harmless): No library found for -lversion Warning (mostly harmless): No library found for -lodbc32 Warning (mostly harmless): No library found for -lodbccp32 Warning (mostly harmless): No library found for -lcomctl32 Warning (mostly harmless): No library found for -lmsvcrt 'uname' is not recognized as an internal or external command, operable program or batch file. ...Processor of family `' detected #### Do not know how to build for assembler `'. #### #### Reversing to assembler-less type `port'. #### #### #### #### If you think your processor's assembler is supported #### #### by PARI, edit libPARI/Makefile.PL and report. #### #### #### #### Alternatively, specify machine=YOURTYPE or machine=none ### +# #### on the #### #### perl Makefile.PL #### #### command line. #### #### Recognized types: #### #### alpha hppa m86k none sparcv7 sparcv8 sparcv8_micro #### #### sparcv8_super ix86 (ppc ia64 after 2.2.7) #### ...I will use portable assembler-less build ...Assembler is not GNU assembler Warning (mostly harmless): No library found for -lm Warning (mostly harmless): No library found for -lkernel32 Warning (mostly harmless): No library found for -luser32 Warning (mostly harmless): No library found for -lgdi32 Warning (mostly harmless): No library found for -lwinspool Warning (mostly harmless): No library found for -lcomdlg32 Warning (mostly harmless): No library found for -ladvapi32 Warning (mostly harmless): No library found for -lshell32 Warning (mostly harmless): No library found for -lole32 Warning (mostly harmless): No library found for -loleaut32 Warning (mostly harmless): No library found for -lnetapi32 Warning (mostly harmless): No library found for -luuid Warning (mostly harmless): No library found for -lws2_32 Warning (mostly harmless): No library found for -lmpr Warning (mostly harmless): No library found for -lwinmm Warning (mostly harmless): No library found for -lversion Warning (mostly harmless): No library found for -lodbc32 Warning (mostly harmless): No library found for -lodbccp32 Warning (mostly harmless): No library found for -lcomctl32 Warning (mostly harmless): No library found for -lmsvcrt Writing Makefile for Math::PARI::libPARI Writing MYMETA.yml and MYMETA.json Writing Makefile for Math::Pari Writing MYMETA.yml and MYMETA.json -> OK Checking dependencies from MYMETA.json ... Checking if you have ExtUtils::MakeMaker 0 ... Yes (6.64) Building and testing Math-Pari-2.01080605 cp libPARI.dumb.pod blib\lib\Math\libPARI.dumb.pod cp PariInit.pm blib\lib\Math\PariInit.pm cp Pari.pm blib\lib\Math\Pari.pm cp libPARI.pod blib\lib\Math\libPARI.pod cd libPARI && C:\Perl64\site\bin\dmake.exe C:\Perl64\bin\perl.exe -wle0 > pariinl.h C:\Perl64\bin\perl.exe -pe1 ../pari-2.1.7/src/kernel/none/level0.h ../ +pari-2.1.7/src/kernel/none/level1.h >> pariinl.h C:\Perl64\site\bin\gcc.exe -c -I ../pari-2.1.7/src -I ../pari-2.1.7/s +rc/headers -I ../pari-2.1.7/src/graph -I . -DNDEBUG -DWIN32 -D_CO +NSOLE -DNO_STRICT -DWIN64 -DCONSERVATIVE -DPERL_TEXTMODE_SCRIPTS -DUS +E_SITECUSTOMIZE -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PER +LIO -DHASATTRIBUTE -fno-strict-aliasing -mms-bitfields -DPERLDLL -O2 + -DVERSION=\"\" -DXS_VERSION=\"\" -Derr=pari_err -DASMINLIN +E -DGCC_INLINE -DDYNAMIC_PLOTTING -o es.o ../pari-2.1.7/src/language/ +es.c In file included from ../pari-2.1.7/src/headers/pari.h:94:0, from ../pari-2.1.7/src/language/es.c:21: ./pariinl.h: In function 'new_chunk': ./pariinl.h:368:18: warning: cast to pointer from integer of different + size
        I missed the thing that you're using ActiveState's Perl. You should probably try to install Math::Pari with their own tool: PPM (as discused in a previous thread.