I am having trouble installing Net::SFTP. I could not get the module on PPM, so tried a CPAN'd install. However it dies before completing the install. So far, no success, due to the high number of dependencies.
After going through other people's post on the same topic, I tried to individually install the modules mentioned below and in the exact order (using PPM & CPAN).
Test::More
Math::GMP
String::CRC32
Net::SSH::Perl
Class::Loader
Convert::ASCII::Armour
Crypt::CBC
Crypt::Primes
Crypt::Blowfish
Tie::EncryptedHash
Sort::Versions
Data::Buffer
Digest::BubbleBabble
Crypt::RSA
Crypt::DES
Crypt::DSA
Math::Pari
Crypt::Random
Crypt::DH
Crypt::DES_EDE3
Convert::ASN1
Convert::PEM
Net::SSH::Perl
(both SSH2 and SSH1, 3DES)
Net::SFTP

Since, Net::SSH::Perl is prequisite to Net::SFTP, I installed it using PPM. But again the dependencies are not installed correctly so, it does not work :-(
I have trouble installing Crypt::Primes, Crypt::RSA, Math::Pari, Crypt::Random and Net::SFTP.
While installing Math::Pari on CPAN, I get following error -
CPAN.pm: Going to build I/IL/ILYAZ/modules/Math-Pari-2.010703.tar.gz 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. Fetch? (y/n, press Enter) y Getting GP/PARI from ftp://megrez.math.u-bordeaux.fr/pub/pari/unix/ Available golden versions: `2.1.6 2.1.3 2.1.1 2.1.0 2.1.5 2.1.7 2.1.4 +2.1.2' Latest golden is `pari-2.1.7.tgz' Picking golden version 2.1.7, file pari-2.1.7.tgz Downloading...

And, then it asks me for some patches...which I am unable to understand. What am I suppose to write here?
Looking for patches for 2.1.7... Patching... cd pari-2.1.7 ; patch -p1 < ../patches/patch-pari-unnormalized-float Looks like a unified context diff. File to patch: No file found -- skip this patch? [no] yes Skipping patch... I can't seem to find a patch in there anywhere. cd pari-2.1.7 ; patch -p1 < ../patches/diff_2.1.7_-O Looks like a unified context diff. I can't seem to find a patch in there anywhere. cd pari-2.1.7 ; patch -p1 < ../patches/diff_2.1.7_restart Looks like a unified context diff. The next patch looks like a unified context diff. I can't seem to find a patch in there anywhere. Finished patching... Setting up Math::Pari with Perl 5.008002 on solaris version 2.6; cc=gcc, gccversion=2.95.3 20010315 (release), ccflags='-D_POSIX_PTH +READ_SEMANTICS -D_REENTRANT -DNO_HASH_SEED -fno-strict-aliasing -D_LA +RGEFILE_SOURCE -D_FILE_OFFSET_BITS=64', ld=gcc, ldflags=' ', optimize='-O'. Found GP/PARI build directory in pari-2.1.7 (integer-formatted version 2001007). ...Generating libPARI/paricfg.h ... Scanning header files... ...ulong ...getrusage Creating libPARI/paricfg.h... ...Processor of family `sparcv9' detected Checking if your kit is complete... Looks good ...Processor of family `sparcv9' detected ...I will use assembler build of type 'sparcv8_micro'. ...Assembler is not GNU assembler Writing Makefile for Math::PARI::libPARI Writing Makefile for Math::Pari 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 && /usr/local/bin/make LIB="" LIBPERL_A="libperl.a" LINKTYP +E="dynamic" PREFIX="" OPTIMIZE="-O" PASTHRU_DEFINE="" PASTHRU_INC="" make[1]: Entering directory `/usr1/duser/.cpan/build/Math-Pari-2.01070 +3/libPARI' /usr1/duser/ActivePerl-5.8/bin/perl -pe1 ../pari-2.1.7/src/kernel/spar +cv8/level0.h ../pari-2.1.7/src/kernel/none/level1.h > pariinl.h

And, then a lot of gcc commands (which I am not pasting here, but can if you want).
make[1]: as: Command not found make[1]: *** [kernel.o] Error 127 make[1]: Leaving directory `/usr1/duser/.cpan/build/Math-Pari-2.010703 +/libPARI' make: *** [libPARI/libPARI.a] Error 2 /usr/local/bin/make -- NOT OK Running make test Can't test without successful make Running make install make had returned bad status, install seems impossible

My environment is -
SunOS 5.8
gcc version 2.95.2 19991024 (release) ....at /usr/local/bin
Pl. help me out!!!

In reply to Trouble installing Net::SFTP by shilpam

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.