Beefy Boxes and Bandwidth Generously Provided by pair Networks Frank
Problems? Is your data what you think it is?
 
PerlMonks  

Installing Math::Pari module on Windows 2008

by Anonymous Monk
on Oct 11, 2012 at 06:37 UTC ( #998371=perlquestion: print w/ replies, xml ) Need Help??
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hello Monks,

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:

cpan> 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/CHECKSU +MS Catching error: "Transfer truncated: only 25764 out of 101425 bytes r +eceived\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>

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

When I try the above module manually, using commands: "perl Makefile.PL && dmake install. I end up with below error:

C:\Perl64\cpan\sources\authors\id\I\IL\ILYAZ\modules\Math-Pari-2.010 +80605>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 parid +ir=/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.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.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 -DCONSERVA +TIVE -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 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 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.01080 +605>

I also tried installing Visual Studio to avoid gcc installer problem and gave similar attempt with 32 bit perl version on 64 bit OS?

One more attempt was to install the Math-Pari.ppd, but it gave below error:

C:\>ppm install http://theoryx5.uwinnipeg.ca/ppmpackages/Math-Pari.ppd ppm install failed: The PPD does not provide code to install for this +platform

Perl Version:
-------------
C:\>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.

Host detail:
---------------
C:\>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

Have anyone tried installing Math::Pari or Net::SSH::Perl module successfully on windows 2008 64 bit OS?

Any suggestion would be very useful !! I'm kind of stuck in this for a couple of days.

Thanks,
Nikhil.

Comment on Installing Math::Pari module on Windows 2008
Select or Download Code
Re: Installing Math::Pari module on Windows 2008
by Anonymous Monk on Oct 11, 2012 at 06:42 UTC

    Any suggestion would be very useful !

    Can you guess what this means?

    'gzip' is not recognized as an internal or external command, operable program or batch file.

    'patch' is not recognized as an internal or external command, operable program or batch file.

    I think you need to use  ppm install MinGW before gzip/patch will be available

      Thanks for your quick response. MinGw is already installed on host. It gets automatically installed once we open the CPAN for the first time in command prompt. But I installed it again and it got failed on last step:

      C:\>ppm install MinGW Downloading ActiveState Package Repository packlist...done Updating ActiveState Package Repository database...done Downloading Ilyaz packlist...done Downloading test packlist...done Syncing perl PPM database with .packlists...done Syncing site PPM database with .packlists...done ppm install failed: Can't find any package that provides MinGW C:\>

      I tried again with "perl Makefile.PL machine=none" and got below response now:

      C:\Perl64\cpan\sources\authors\id\I\IL\ILYAZ\modules\Math-Pari-2.01080 +605>perl Makefile.PL machine=none Set up gcc environment - gcc.exe (rubenvb-4.5.4) 4.5.4 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 -DCONSERVA +TIVE -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 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. ...Will not overwrite libPARI/paricfg.h... (remove it manually if nee +ded) You may also want to remove libPARI/paricfg.h if your configuration + changed from the time of the first build in this directory... 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 ...Via command-line: processor family `none' ...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.01080 +605>
      Next step is to perform "dmake install"
      C:\Perl64\cpan\sources\authors\id\I\IL\ILYAZ\modules\Math-Pari-2.01080 +605>dmake install cd libPARI && C:\Perl64\site\bin\dmake.exe C:\Perl64\site\bin\gcc.exe -c -I .././pari-2.1.7/src -I .././pari-2.1 +.7/src/headers -I .././pari-2.1.7/src/graph -I . -DNDEBUG -DWIN32 -D_CONSOLE -DNO_STRICT -DWIN64 -DCONSERVATIVE -DPERL_ +TEXTMODE_SCRIPTS -DUSE_SITECUSTOMIZE -DPERL_IMPLIC IT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DHASATTRIBUTE -fno-strict +-aliasing -mms-bitfields -DPERLDLL -O2 -DVERS ION=\"\" -DXS_VERSION=\"\" -Derr=pari_err -DASMINLINE -DGCC_IN +LINE -DDYNAMIC_PLOTTING -o highlvl.o .././pari-2.1 .7/src/gp/highlvl.c In file included from .././pari-2.1.7/src/headers/pari.h:94:0, from .././pari-2.1.7/src/gp/highlvl.c:21: ./pariinl.h: In function 'new_chunk': ./pariinl.h:368:18: warning: cast to pointer from integer of different + size ./pariinl.h:369:26: warning: cast to pointer from integer of different + size ./pariinl.h:369:36: warning: cast to pointer from integer of different + size ./pariinl.h:376:10: warning: cast from pointer to integer of different + size ./pariinl.h: In function 'mpcopy': ./pariinl.h:411:22: warning: cast from pointer to integer of different + size ./pariinl.h: In function 'stosmall': ./pariinl.h:501:10: warning: cast to pointer from integer of different + size ./pariinl.h: In function 'affii': ./pariinl.h:512:22: warning: cast from pointer to integer of different + size ./pariinl.h: In function 'affsi': ./pariinl.h:520:7: warning: cast from pointer to integer of different +size ./pariinl.h: In function 'affsr': ./pariinl.h:532:10: warning: cast from pointer to integer of different + size ./pariinl.h:538:28: warning: cast from pointer to integer of different + size ./pariinl.h: In function 'mpaff': ./pariinl.h:544:7: warning: cast from pointer to integer of different +size ./pariinl.h:545:10: warning: cast from pointer to integer of different + size ./pariinl.h:547:10: warning: cast from pointer to integer of different + size ./pariinl.h: In function 'cmpir': ./pariinl.h:567:20: warning: cast from pointer to integer of different + size ./pariinl.h: In function 'addssz': ./pariinl.h:585:7: warning: cast from pointer to integer of different +size ./pariinl.h:589:24: warning: cast from pointer to integer of different + size ./pariinl.h: In function 'subrr': ./pariinl.h:612:29: warning: cast from pointer to integer of different + size ./pariinl.h: In function 'mulssz': ./pariinl.h:660:7: warning: cast from pointer to integer of different +size ./pariinl.h:664:24: warning: cast from pointer to integer of different + size ./pariinl.h: In function 'divisz': ./pariinl.h:794:7: warning: cast from pointer to integer of different +size ./pariinl.h:798:24: warning: cast from pointer to integer of different + size ./pariinl.h: In function 'divsiz': ./pariinl.h:809:7: warning: cast from pointer to integer of different +size ./pariinl.h:812:19: warning: cast from pointer to integer of different + size ./pariinl.h: In function 'divssz': ./pariinl.h:826:7: warning: cast from pointer to integer of different +size ./pariinl.h:829:24: warning: cast from pointer to integer of different + size ./pariinl.h: In function 'mpcmp': ./pariinl.h:861:7: warning: cast from pointer to integer of different +size ./pariinl.h:862:13: warning: cast from pointer to integer of different + size ./pariinl.h:863:11: warning: cast from pointer to integer of different + size ./pariinl.h: In function 'mpadd': ./pariinl.h:869:7: warning: cast from pointer to integer of different +size ./pariinl.h:870:13: warning: cast from pointer to integer of different + size ./pariinl.h:871:11: warning: cast from pointer to integer of different + size ./pariinl.h: In function 'mpsub': ./pariinl.h:877:7: warning: cast from pointer to integer of different +size ./pariinl.h:878:13: warning: cast from pointer to integer of different + size ./pariinl.h:879:11: warning: cast from pointer to integer of different + size ./pariinl.h: In function 'mpmul': ./pariinl.h:885:7: warning: cast from pointer to integer of different +size ./pariinl.h:886:13: warning: cast from pointer to integer of different + size ./pariinl.h:887:11: warning: cast from pointer to integer of different + size ./pariinl.h: In function 'mpdiv': ./pariinl.h:893:7: warning: cast from pointer to integer of different +size ./pariinl.h:894:13: warning: cast from pointer to integer of different + size ./pariinl.h:895:11: warning: cast from pointer to integer of different + size ./pariinl.h: In function 'gtodouble': ./pariinl.h:917:7: warning: cast from pointer to integer of different +size In file included from c:\perl64\site\lib\auto\mingw\bin\../lib/gcc/x86 +_64-w64-mingw32/4.5.4/../../../../x86_64-w64-mingw 32/include/winnt.h:1446:0, from c:\perl64\site\lib\auto\mingw\bin\../lib/gcc/x86 +_64-w64-mingw32/4.5.4/../../../../x86_64-w64-mingw 32/include/windef.h:137, from c:\perl64\site\lib\auto\mingw\bin\../lib/gcc/x86 +_64-w64-mingw32/4.5.4/../../../../x86_64-w64-mingw 32/include/windows.h:59, from .././pari-2.1.7/src/gp/highlvl.c:77: c:\perl64\site\lib\auto\mingw\bin\../lib/gcc/x86_64-w64-mingw32/4.5.4/ +../../../../x86_64-w64-mingw32/include/intrin.h: A t top level: c:\perl64\site\lib\auto\mingw\bin\../lib/gcc/x86_64-w64-mingw32/4.5.4/ +../../../../x86_64-w64-mingw32/include/intrin.h:30 6:5: error: conflicting types for 'abs' In file included from c:\perl64\site\lib\auto\mingw\bin\../lib/gcc/x86 +_64-w64-mingw32/4.5.4/../../../../x86_64-w64-mingw 32/include/windows.h:62:0, from .././pari-2.1.7/src/gp/highlvl.c:77: c:\perl64\site\lib\auto\mingw\bin\../lib/gcc/x86_64-w64-mingw32/4.5.4/ +../../../../x86_64-w64-mingw32/include/winuser.h:4 070:72: error: expected ';', ',' or ')' before 'gpsi' c:\perl64\site\lib\auto\mingw\bin\../lib/gcc/x86_64-w64-mingw32/4.5.4/ +../../../../x86_64-w64-mingw32/include/winuser.h:4 071:75: error: expected ';', ',' or ')' before 'gpsi' .././pari-2.1.7/src/gp/highlvl.c: In function 'type0': .././pari-2.1.7/src/gp/highlvl.c:201:25: warning: cast from pointer to + integer of different size .././pari-2.1.7/src/gp/highlvl.c:204:8: warning: cast from pointer to +integer of different size .././pari-2.1.7/src/gp/highlvl.c:218:12: warning: cast from pointer to + integer of different size dmake.exe: Error code 129, while making 'highlvl.o' dmake.exe: Error code 255, while making 'libPARI\libPARI.a' C:\Perl64\cpan\sources\authors\id\I\IL\ILYAZ\modules\Math-Pari-2.01080 +605>

      We can observe the errors in last two lines:


      dmake.exe: Error code 129, while making 'highlvl.o'
      dmake.exe: Error code 255, while making 'libPARI\libPARI.a'
      The above steps are given in INSTALL document inside Math_Pari module.
      Any idea how to overcome this?
      Thanks,
      Nikhil.

        MinGw is already installed on host ... Any idea how to overcome this?

        Your version of MinGW/gcc is very old, and since the problem is with mingw64 headers, first thing I would try is install a newer MinGW/gcc -- whatever the mingw64 equivalent is of

        mingw-get upgrade gcc-core-bin
Re: Installing Math::Pari module on Windows 2008
by salva (Monsignor) on Oct 11, 2012 at 07:54 UTC
    Net::SSH::Perl is old and unmaintained.

    Nowadays, on Windows, Net::SSH2 is a much better option and easier to install.

      Net::SSH2 is even available via ppm from the sisyphusion repo, and it also ships with the recent Strawberry Perl builds.

      Cheers,
      Rob

        Thanks everyone for your replies. I am trying to install Net::SSH2 module now on windows 2008 R2 OS.

        As per the instruction provided in the building guide for Win32, I am kind of stuck in step which build libssh2.

        BUILDING_WIN32 document suggests the following approach for building libssh2:


        ============================================================ * Build libssh2 Download the latest libssh2 from: http://libssh2.org/ Unpack it and go into it: tar zxvf libssh2-1.4.2.tar.gz cd libssh2-1.4.2 Note the directories where you built OpenSSL and zlib, I will use mine + in the following example. Build libssh2: ./buildconf ./configure --with-openssl --with-libz \ --with-libssl-prefix=/c/Users/rkitover/src/openssl-1.0.1c \ --with-libz-prefix=/c/Users/rkitover/src/zlib-1.2.7 \ --disable-examples-build make -j3 The libssh2.a will be in src/.libs . ===========================================================

        when I try to perform ./buildconf on CMD prompt shell, I ended up with below error:

        C:\libssh2-1.4.2>sh buildconf which: libtoolize: unknown command which: glibtoolize: unknown command Neither libtoolize nor glibtoolize could be found!

        Later I manually intalled libtooltize tool using 'libtool-1.5.26-setup.exe' and now ending up with below error:

        C:\libssh2-1.4.2>sh buildconf buildconf: line 15: aclocal: command not found buildconf: line 16: autoheader: command not found buildconf: line 21: autoconf: command not found buildconf: line 22: automake: command not found C:\libssh2-1.4.2>
        I tried installing autoconf and automake similarly but again ending up with multiple compilations issues.
        Can anyone suggest how to overcome this issue?
        MinGw and MinGW_64 is already configured on host and running fine.
        I've successfully done all the previous steps as suggested in http://cpansearch.perl.org/src/RKITOVER/Net-SSH2-0.45/README document

        Thanks,
        Nikhil.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://998371]
Approved by chacham
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (7)
As of 2014-04-21 06:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (492 votes), past polls