<?xml version="1.0" encoding="windows-1252"?>
<node id="998371" title="Installing Math::Pari module on Windows 2008" created="2012-10-11 02:37:25" updated="2012-10-11 02:37:25">
<type id="115">
perlquestion</type>
<author id="961">
Anonymous Monk</author>
<data>
<field name="doctext">
Hello Monks,

&lt;p&gt;    I am trying to install Net:SSH::Perl module on my windows 2008 R2 64 bit operating system. The overall installation fails when it tries to install Math::Pari 
 module which is one of the dependency module required for Net:SSH::Perl. I am pasting the exact error below:
&lt;/p&gt; 
&lt;code&gt;
 cpan&gt; install Math::Pari
 Running install for module 'Math::Pari'
 Running make for I/IL/ILYAZ/modules/Math-Pari-2.01080605.tar.gz
 Fetching with LWP:
 http://ppm.activestate.com/CPAN/authors/id/I/IL/ILYAZ/modules/CHECKSUMS
 Catching error: "Transfer truncated: only 25764 out of 101425 bytes received\cJ" at C:\Perl64\lib/CPAN.pm line 392.
         CPAN::shell() called at C:\Perl64\lib/App/Cpan.pm line 295
         App::Cpan::_process_options('App::Cpan') called at C:\Perl64\lib/App/Cpan.pm line 364
         App::Cpan::run('App::Cpan') called at C:\Perl64\bin/cpan.bat line 24
 cpan&gt;
&lt;/code&gt;
 &lt;p&gt; The error is catching transfered here, but the module gets fully downloaded in "C:\Perl64\cpan\sources\authors\id\I\IL\ILYAZ\modules" location. 
  Module name: Math-Pari-2.01080605.tar.gz
&lt;/p&gt;  
&lt;p&gt;  When I try the above module manually, using commands: "perl Makefile.PL &amp;&amp; dmake install. I end up with below error:
&lt;/p&gt;
&lt;code&gt;  
  C:\Perl64\cpan\sources\authors\id\I\IL\ILYAZ\modules\Math-Pari-2.01080605&gt;perl Makefile.PL
Set up gcc environment - gcc.exe (rubenvb-4.5.4) 4.5.4
Did not find GP/PARI build directory around.
Do you want to me to fetch GP/PARI automatically?
  (If you do not, you will need to fetch it manually, and/or direct me to
   the directory with GP/PARI source via the command-line option paridir=/dir)

Make sure you have a large scrollback buffer to see the messages, or `tee'
the STDOUT/STDERR to a file.

Fetch? (y/n, press Enter) y
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.03 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" "Archive::Tar-&gt;new(shift)-&gt;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 &amp;&amp; patch -p1  &lt; ..\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 &amp;&amp; patch -p1  &lt; ..\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 &amp;&amp; patch -p1  &lt; ..\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 &amp;&amp; patch -p1  &lt; ..\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 &amp;&amp; patch -p1  &lt; ..\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 &amp;&amp; patch -p1  &lt; ..\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.016001 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 -DCONSERVATIVE -DPERL_TEXTMODE_SCRIPTS -DUSE_SITECUSTOMIZE -
DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DHASATTRIBUTE -fno-strict-aliasing -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 versions 2.3.*.

  ### Especially important are the problems with symbols `hiremainder' and
  ### `overflow' - if your build fails and error messages contain these
  ### 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 version-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 PostScript.

...Generating libPARI/paricfg.h ...
Scanning header files...
Note (probably harmless): Errors reading from pipe: '', exit=256: C:\Perl64\site\bin\gcc.exe -E -DWIN32 utils/inc.h 2&gt;&amp;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
Note (probably harmless): No library found for -lm
Note (probably harmless): No library found for -lkernel32
Note (probably harmless): No library found for -luser32
Note (probably harmless): No library found for -lgdi32
Note (probably harmless): No library found for -lwinspool
Note (probably harmless): No library found for -lcomdlg32
Note (probably harmless): No library found for -ladvapi32
Note (probably harmless): No library found for -lshell32
Note (probably harmless): No library found for -lole32
Note (probably harmless): No library found for -loleaut32
Note (probably harmless): No library found for -lnetapi32
Note (probably harmless): No library found for -luuid
Note (probably harmless): No library found for -lws2_32
Note (probably harmless): No library found for -lmpr
Note (probably harmless): No library found for -lwinmm
Note (probably harmless): No library found for -lversion
Note (probably harmless): No library found for -lodbc32
Note (probably harmless): No library found for -lodbccp32
Note (probably harmless): No library found for -lcomctl32
Note (probably 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
Note (probably harmless): No library found for -lm
Note (probably harmless): No library found for -lkernel32
Note (probably harmless): No library found for -luser32
Note (probably harmless): No library found for -lgdi32
Note (probably harmless): No library found for -lwinspool
Note (probably harmless): No library found for -lcomdlg32
Note (probably harmless): No library found for -ladvapi32
Note (probably harmless): No library found for -lshell32
Note (probably harmless): No library found for -lole32
Note (probably harmless): No library found for -loleaut32
Note (probably harmless): No library found for -lnetapi32
Note (probably harmless): No library found for -luuid
Note (probably harmless): No library found for -lws2_32
Note (probably harmless): No library found for -lmpr
Note (probably harmless): No library found for -lwinmm
Note (probably harmless): No library found for -lversion
Note (probably harmless): No library found for -lodbc32
Note (probably harmless): No library found for -lodbccp32
Note (probably harmless): No library found for -lcomctl32
Note (probably 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
C:\Perl64\cpan\sources\authors\id\I\IL\ILYAZ\modules\Math-Pari-2.01080605&gt;
&lt;/code&gt;
&lt;p&gt; I also tried installing Visual Studio to avoid gcc installer problem and gave similar attempt with 32 bit perl version on 64 bit OS?
&lt;/p&gt;&lt;p&gt; One more attempt was to install the Math-Pari.ppd, but it gave below error:&lt;/p&gt;&lt;code&gt;
C:\&gt;ppm install http://theoryx5.uwinnipeg.ca/ppmpackages/Math-Pari.ppd
ppm install failed: The PPD does not provide code to install for this platform
&lt;/code&gt;&lt;p&gt; 
Perl Version:&lt;br&gt;
-------------&lt;br&gt;
C:\&gt;perl -v
This is perl 5, version 16, subversion 1 (v5.16.1) built for MSWin32-x64-multi-thread
(with 1 registered patch, see perl -V for more detail)
Copyright 1987-2012, Larry Wall
Binary build 1601 [296175] provided by ActiveState http://www.ActiveState.com
Built Aug 30 2012 18:41:50
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 kit.
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 Page.
&lt;/p&gt;
&lt;p&gt; 
Host detail:&lt;br&gt;
---------------&lt;br&gt; 
C:\&gt;systeminfo.exe
OS Name:                   Microsoft Windows Server 2008 R2 Enterprise
OS Version:                6.1.7600 N/A Build 7600
OS Manufacturer:           Microsoft Corporation
OS Configuration:          Standalone Server
OS Build Type:             Multiprocessor Free
Registered Owner:          Windows User
System Manufacturer:       IBM
System Model:              IBM System x3550 -[7978C1A]-
System Type:               x64-based PC 
&lt;/p&gt; 
 &lt;p&gt;Have anyone tried installing Math::Pari or Net::SSH::Perl module successfully on windows 2008 64 bit OS? &lt;/p&gt; 

&lt;p&gt; Any suggestion would be very useful !! I'm kind of stuck in this for a couple of days. &lt;/p&gt;

Thanks,&lt;br&gt;
Nikhil. 
 </field>
<field name="reputation">
4</field>
</data>
</node>
