I am trying to install Net::SFTP into Perl verion 10. I am getting a lot of errors. Math::Pari is a required installation and I cannot get it install. I have tried to force it and still have issues.
$ perl -MCPAN -e "install Crypt::Random" Set up gcc environment - 3.4.5 (mingw special) CPAN: File::HomeDir loaded ok (v0.69) CPAN: Storable loaded ok (v2.18) Going to read C:\Perl\cpan\Metadata Database was generated on Thu, 07 Feb 2008 11:31:03 GMT Running install for module 'Crypt::Random' Running make for V/VI/VIPUL/Crypt-Random-1.25.tar.gz CPAN: Digest::SHA loaded ok (v5.45) CPAN: Compress::Zlib loaded ok (v2.008) Checksum for C:\Perl\cpan\sources\authors\id\V\VI\VIPUL\Crypt-Random-1 +.25.tar.gz ok CPAN: Archive::Tar loaded ok (v1.38_01) Crypt-Random-1.25/ Crypt-Random-1.25/lib/ Crypt-Random-1.25/lib/Crypt/ Crypt-Random-1.25/lib/Crypt/Random/ Crypt-Random-1.25/lib/Crypt/Random/Provider/ Crypt-Random-1.25/lib/Crypt/Random/Provider/File.pm Crypt-Random-1.25/lib/Crypt/Random/Provider/devrandom.pm Crypt-Random-1.25/lib/Crypt/Random/Provider/rand.pm Crypt-Random-1.25/lib/Crypt/Random/Provider/devurandom.pm Crypt-Random-1.25/lib/Crypt/Random/Provider/egd.pm Crypt-Random-1.25/lib/Crypt/Random/Generator.pm Crypt-Random-1.25/lib/Crypt/Random.pm Crypt-Random-1.25/t/ Crypt-Random-1.25/t/octet_string.t Crypt-Random-1.25/t/generator.t Crypt-Random-1.25/t/pari_misfeature.t Crypt-Random-1.25/t/random.t Crypt-Random-1.25/t/makerandom_itv.t Crypt-Random-1.25/bin/ Crypt-Random-1.25/bin/makerandom Crypt-Random-1.25/Changes Crypt-Random-1.25/MANIFEST Crypt-Random-1.25/META.yml Crypt-Random-1.25/Makefile.PL Crypt-Random-1.25/README CPAN: File::Temp loaded ok (v0.20) CPAN: YAML loaded ok (v0.66) $ CPAN.pm: Going to build V/VI/VIPUL/Crypt-Random-1.25.tar.gz Set up gcc environment - 3.4.5 (mingw special) Checking if your kit is complete... Looks good Warning: prerequisite Math::Pari 2.001804 not found. Writing Makefile for Crypt::Random ---- Unsatisfied dependencies detected during ---- ---- VIPUL/Crypt-Random-1.25.tar.gz ---- Math::Pari [requires] Shall I follow them and prepend them to the queue of modules we are processing right now? [yes] Running make test Delayed until after prerequisites Running make install Delayed until after prerequisites Running install for module 'Math::Pari' Running make for I/IL/ILYAZ/modules/Math-Pari-2.010709.tar.gz Checksum for C:\Perl\cpan\sources\authors\id\I\IL\ILYAZ\modules\Math-P +ari-2.0107 09.tar.gz ok Math-Pari-2.010709/ Math-Pari-2.010709/Changes Math-Pari-2.010709/func_codes.h Math-Pari-2.010709/INSTALL Math-Pari-2.010709/libPARI/ Math-Pari-2.010709/libPARI/codes_2014 Math-Pari-2.010709/libPARI/expected_codes Math-Pari-2.010709/libPARI/extract_codes.pl Math-Pari-2.010709/libPARI/gphelp Math-Pari-2.010709/libPARI/Makefile.PL Math-Pari-2.010709/Makefile.PL Math-Pari-2.010709/MANIFEST Math-Pari-2.010709/META.yml Math-Pari-2.010709/Pari.pm Math-Pari-2.010709/Pari.xs Math-Pari-2.010709/PariInit.pm Math-Pari-2.010709/patches/ Math-Pari-2.010709/patches/diff_2.1.2_gccism Math-Pari-2.010709/patches/diff_2.1.3_interface Math-Pari-2.010709/patches/diff_2.1.4_interface Math-Pari-2.010709/patches/diff_2.1.6_no-common Math-Pari-2.010709/patches/diff_2.1.6_ploth64 Math-Pari-2.010709/patches/diff_2.1.7_-O Math-Pari-2.010709/patches/diff_2.1.7_restart Math-Pari-2.010709/patches/diff_2.2.2_interface Math-Pari-2.010709/patches/diff_pari-2.1.3-ix86-divl Math-Pari-2.010709/patches/patch-pari-unnormalized-float Math-Pari-2.010709/README Math-Pari-2.010709/t/ Math-Pari-2.010709/t/00_Pari.t Math-Pari-2.010709/t/PlotRect.t Math-Pari-2.010709/t/zz_leak.t Math-Pari-2.010709/test_eng/ Math-Pari-2.010709/test_eng/ex.t Math-Pari-2.010709/test_eng/Testout.pm Math-Pari-2.010709/TODO Math-Pari-2.010709/typemap Math-Pari-2.010709/utils/ Math-Pari-2.010709/utils/chap3_to_pod Math-Pari-2.010709/utils/comp_funcs.pl Math-Pari-2.010709/utils/foncpari.pl Math-Pari-2.010709/utils/inc.h Math-Pari-2.010709/utils/Math/ Math-Pari-2.010709/utils/Math/PariBuild.pm Math-Pari-2.010709/utils/notes Math-Pari-2.010709/utils/paridoc_to_pod Math-Pari-2.010709/utils/README CPAN.pm: Going to build I/IL/ILYAZ/modules/Math-Pari-2.010709.tar.gz Set up gcc environment - 3.4.5 (mingw special) 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) Well, as you wish... Rerun Makefile.PL when you fetched GP/PARI archive manually to the current directory, or a (grand)parent directory of it. [Keep in mind that version of Math::Pari module corresponds to the last versions of GP/PARI it was tested with.] Alternatively, you may 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 neede +d], you may specify paridir=PATH_TO_DIST_DIR option to Makefile.PL) Could not find GP/PARI build directory, please run Makefile.PL with paridir=/directory option. Warning: No success on command[c:\Perl\bin\perl.exe Makefile.PL] ILYAZ/modules/Math-Pari-2.010709.tar.gz c:\Perl\bin\perl.exe Makefile.PL -- NOT OK Running make test Make had some problems, won't test Running make install Make had some problems, won't install Running make for V/VI/VIPUL/Crypt-Random-1.25.tar.gz Has already been unwrapped into directory C:\Perl\cpan\build\Crypt-R +andom-1.25 -xgi7c6 CPAN.pm: Going to build V/VI/VIPUL/Crypt-Random-1.25.tar.gz Warning: Prerequisite 'Math::Pari => 2.001804' for 'V/VI/VIPUL/Crypt-R +andom-1.25 .tar.gz' failed when processing 'I/IL/ILYAZ/modules/Math-Pari-2.010709 +.tar.gz' w ith 'writemakefile => NO 'c:\Perl\bin\perl.exe Makefile.PL' returned s +tatus 2304 '. Continuing, but chances to succeed are limited. PKSFX (R) FAST! Self Extract Utility Version 2.04g 02-01-93 Copr. 1989-1993 PKWARE Inc. All Rights Reserved. Shareware version PKSFX Reg. U.S. Pat. and Tm. Off. Searching EXE: C:/TEMP/NEWSTUFF/NMAKE.EXE Inflating: NMAKE.ERR Inflating: NMAKE.EXE Inflating: README.TXT VIPUL/Crypt-Random-1.25.tar.gz nmake -- OK Running make test Microsoft (R) Program Maintenance Utility Version 1.50 Copyright (c) Microsoft Corp 1988-94. All rights reserved. cp lib/Crypt/Random/Provider/File.pm blib\lib\Crypt\Random\Provider\Fi +le.pm cp lib/Crypt/Random.pm blib\lib\Crypt\Random.pm cp lib/Crypt/Random/Provider/devrandom.pm blib\lib\Crypt\Random\Provid +er\devrand om.pm cp lib/Crypt/Random/Provider/rand.pm blib\lib\Crypt\Random\Provider\ra +nd.pm cp lib/Crypt/Random/Generator.pm blib\lib\Crypt\Random\Generator.pm cp lib/Crypt/Random/Provider/devurandom.pm blib\lib\Crypt\Random\Provi +der\devura ndom.pm cp lib/Crypt/Random/Provider/egd.pm blib\lib\Crypt\Random\Provider\egd +.pm C:\Perl\bin\perl.exe -MExtUtils::Command -e cp bin/makerandom +blib\scrip t\makerandom pl2bat.bat blib\script\makerandom C:\Perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harn +ess(0, 'bl ib\lib', 'blib\arch')" t/*.t t/generator............Can't locate Math/Pari.pm in @INC (@INC contain +s: C:\Perl \cpan\build\Crypt-Random-1.25-xgi7c6\blib\lib C:\Perl\cpan\build\Crypt +-Random-1. 25-xgi7c6\blib\arch C:/Perl/site/lib C:/Perl/lib .) at C:\Perl\cpan\bu +ild\Crypt- Random-1.25-xgi7c6\blib\lib/Crypt/Random.pm line 20. BEGIN failed--compilation aborted at C:\Perl\cpan\build\Crypt-Random-1 +.25-xgi7c6 \blib\lib/Crypt/Random.pm line 20. Compilation failed in require at C:\Perl\cpan\build\Crypt-Random-1.25- +xgi7c6\bli b\lib/Crypt/Random/Generator.pm line 12. BEGIN failed--compilation aborted at C:\Perl\cpan\build\Crypt-Random-1 +.25-xgi7c6 \blib\lib/Crypt/Random/Generator.pm line 12. Compilation failed in require at t/generator.t line 12. BEGIN failed--compilation aborted at t/generator.t line 12. t/generator............ Dubious, test returned 2 (wstat 512, 0x200) No subtests run t/makerandom_itv.......Can't locate Math/Pari.pm in @INC (@INC contain +s: ../lib C:\Perl\cpan\build\Crypt-Random-1.25-xgi7c6\blib\lib C:\Perl\cpan\buil +d\Crypt-Ra ndom-1.25-xgi7c6\blib\arch C:/Perl/site/lib C:/Perl/lib .) at C:\Perl\ +cpan\build \Crypt-Random-1.25-xgi7c6\blib\lib/Crypt/Random.pm line 20. BEGIN failed--compilation aborted at C:\Perl\cpan\build\Crypt-Random-1 +.25-xgi7c6 \blib\lib/Crypt/Random.pm line 20. Compilation failed in require at t/makerandom_itv.t line 10. BEGIN failed--compilation aborted at t/makerandom_itv.t line 10. t/makerandom_itv....... Dubious, test returned 2 (wstat 512, 0x200) No subtests run t/octet_string.........Can't locate Math/Pari.pm in @INC (@INC contain +s: ../lib C:\Perl\cpan\build\Crypt-Random-1.25-xgi7c6\blib\lib C:\Perl\cpan\buil +d\Crypt-Ra ndom-1.25-xgi7c6\blib\arch C:/Perl/site/lib C:/Perl/lib .) at C:\Perl\ +cpan\build \Crypt-Random-1.25-xgi7c6\blib\lib/Crypt/Random.pm line 20. BEGIN failed--compilation aborted at C:\Perl\cpan\build\Crypt-Random-1 +.25-xgi7c6 \blib\lib/Crypt/Random.pm line 20. Compilation failed in require at t/octet_string.t line 12. BEGIN failed--compilation aborted at t/octet_string.t line 12. t/octet_string......... Dubious, test returned 2 (wstat 512, 0x200) No subtests run t/pari_misfeature......Can't locate Math/Pari.pm in @INC (@INC contain +s: ../lib lib C:\Perl\cpan\build\Crypt-Random-1.25-xgi7c6\blib\lib C:\Perl\cpan\ +build\Cryp t-Random-1.25-xgi7c6\blib\arch C:/Perl/site/lib C:/Perl/lib .) at lib/ +Crypt/Rand om.pm line 20. BEGIN failed--compilation aborted at lib/Crypt/Random.pm line 20. Compilation failed in require at t/pari_misfeature.t line 14. BEGIN failed--compilation aborted at t/pari_misfeature.t line 14. t/pari_misfeature...... Dubious, test returned 2 (wstat 512, 0x200) No subtests run t/random...............Can't locate Math/Pari.pm in @INC (@INC contain +s: ../lib lib C:\Perl\cpan\build\Crypt-Random-1.25-xgi7c6\blib\lib C:\Perl\cpan\ +build\Cryp t-Random-1.25-xgi7c6\blib\arch C:/Perl/site/lib C:/Perl/lib .) at lib/ +Crypt/Rand om.pm line 20. BEGIN failed--compilation aborted at lib/Crypt/Random.pm line 20. Compilation failed in require at t/random.t line 13. BEGIN failed--compilation aborted at t/random.t line 13. t/random............... Dubious, test returned 2 (wstat 512, 0x200) No subtests run Test Summary Report ------------------- t/generator.t (Wstat: 512 Tests: 0 Failed: 0) Non-zero exit status: 2 Parse errors: No plan found in TAP output t/makerandom_itv.t (Wstat: 512 Tests: 0 Failed: 0) Non-zero exit status: 2 Parse errors: No plan found in TAP output t/octet_string.t (Wstat: 512 Tests: 0 Failed: 0) Non-zero exit status: 2 Parse errors: No plan found in TAP output t/pari_misfeature.t (Wstat: 512 Tests: 0 Failed: 0) Non-zero exit status: 2 Parse errors: No plan found in TAP output t/random.t (Wstat: 512 Tests: 0 Failed: 0) Non-zero exit status: 2 Parse errors: No plan found in TAP output Files=5, Tests=0, 0 wallclock secs ( 0.05 usr + 0.00 sys = 0.05 CPU +) Result: FAIL Failed 5/5 test programs. 0/0 subtests failed. NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code + '0x2' Stop. VIPUL/Crypt-Random-1.25.tar.gz nmake test -- NOT OK //hint// to see the cpan-testers results for installing this module, t +ry: reports VIPUL/Crypt-Random-1.25.tar.gz Running make install make test had returned bad status, won't install without force
This is needed for other installations. Anyone know how to get pass these type of pitfalls?

20080211 Janitored by Corion: Added code tags, as per Writeup Formatting Tips


In reply to Trying to Install Net::SFTP on Perl version 10 by PerlPat

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.