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

I've tried running a CPAN'd install of Net::SFTP. So far, no success, due to the high number of dependencies.

So far, CPAN has identified the dependencies listed below. It dies before completing the install, however. I'll keep the post shorter, so I won't paste the output. My question is this: Has anyone found a comprehensive listing of all the requirements, and order of installation?

Replies are listed 'Best First'.
Re: Help with Net::SFTP dependencies
by runrig (Abbot) on Dec 06, 2001 at 05:11 UTC
    I got Net::SSH::Perl installed, and I think that's the only thing Net::SFTP directly depends on, and Net::SSH::Perl depends on everything else in the list. It took a good part of a day to install it, and it was just alot of downloading dependent modules and trying to install them, then downloading the sub-dependencies, etc. I suppose if I sort through at 'perldoc perllocal' I could tell the order they were installed in, but you might as well just start installing. Some, like Math::Pari, did not easily install, and could not install with the CPAN module (might be different now, I don't know).
Re: Help with Net::SFTP dependencies
by jplindstrom (Monsignor) on Oct 18, 2002 at 16:04 UTC
    I found your node when researching Net::SFTP. I hope this post may help other people in the future if they do the same.

    I just installed Net::SFTP on a "This is perl, v5.6.1 built for i686-linux-thread-multi" machine, and I wrote down the order in which the modules were reported missing by CPANPLUS.

    It was surprisingly straight-forward considering the mess it was to get it running on Windows (a PPM with Net::SSH::w32Perl saved the day IIRC).

    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 (y get GP/Pari ftp://megrez.math.u-bordeaux.fr/pub/pari/ +unix/) Crypt::Random Crypt::DH Crypt::DES_EDE3 Convert::ASN1 Convert::PEM Net::SSH::Perl (both SSH2 and SSH1, 3DES) (Only SSH will fail a test. I wrote a note about this on the bug +tracking site) Net::SFTP
    I'll install this on another Linux machine, and also a Solaris machine, and try to refine the list if I encounter any other problems.

    /J

Re: Help with Net::SFTP dependencies
by eLore (Hermit) on Dec 06, 2001 at 20:47 UTC
    Update

    Ok, one joyous fact I didn't even realize until this morning... the system I need to install on is slowlaris 2.6. Yippie.

    So far, I've installed the following, in this order:

    • GCC 2.95.3
    • Make 3.76.1
    • Perl 5.6.1
    • Math::Pari-2.010201 -installed clean
    • Class-Loader-2.02 -clean install
    • Convert-ASN1-0.14 -clean install
    • Digest-MD5-2.16 -clean install, though it complained a little about not having gdbm
    • MIME-Base64-2.12 -clean install
    • Compress-Zlib - needs librt.so.1... stuck
    Shared library librt.so.1 is no where to be found, until you get to solaris 2.7... Is this the point where I tell the development leads to take a hike?

    soup nazi says No Net::SFTP for you.


    UPDATE Installed libgcc... Compress ZLIB now complains about code issues, listed below:
    gcc -c -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE +-D_FILE_OFFSET_BITS=64 -O -DVERSION=\"1.02\" -DXS_VERSION=\"1.02\" +-fPIC -I/usr/local/lib/perl5/5.6.1/sun4-solaris/CORE Zlib.c Zlib.xs: In function `XS_Compress__Zlib__gzFile_gzread': Zlib.xs:554: `curcop' undeclared (first use in this function) Zlib.xs:554: (Each undeclared identifier is reported only once Zlib.xs:554: for each function it appears in.) Zlib.xs:554: `compiling' undeclared (first use in this function) Zlib.xs: In function `XS_Compress__Zlib__gzFile_gzreadline': Zlib.xs:599: `curcop' undeclared (first use in this function) Zlib.xs:599: `compiling' undeclared (first use in this function) Zlib.xs: In function `XS_Compress__Zlib__deflateStream_deflate': Zlib.xs:830: `sv_undef' undeclared (first use in this function) Zlib.xs: In function `XS_Compress__Zlib__deflateStream_flush': Zlib.xs:888: `sv_undef' undeclared (first use in this function) Zlib.xs: In function `XS_Compress__Zlib__inflateStream_inflate': Zlib.xs:973: `sv_undef' undeclared (first use in this function) make: *** [Zlib.o] Error 1

    Any thoughts? In the mean time, I have successfully installed the following additional pre-req's, in this order:

    • Crypt-DES-2.03
    • Crypt-Blowfish-2.09
    • Crypt-DES_EDE3-0.01
    • Convert-PEM-0.06
    • String-CRC32-1.2
    • Data-Buffer-0.04
    • Sort-Versions-1.2
    • CBC-1.24
    • Crypt-Random-1.11
    • Crypt-Primes-0.49
    • Digest-SHA1-2.00
    • Digest-HMAC-1.01
    • Math-GMP-1.07
    • Crypt-DH-0.02
    • Crypt-DSA-0.12
    • Digest-BubbleBabble-0.01
    • Tie-EncryptedHash-1.1(complained, but installed)

      Sounds like this module hasn't been ported to a recent version of Perl. You want to use: perl Makefile.PL POLLUTE=1 to work around this problem.

      Update: runrig was kind enough to note that he didn't have problems installing Compress::Zlib under Perl 5.6.1 so I did a quick look and find version 1.14 on CPAN but your output makes it appear that you are installing version 1.02. If that is correct, then you need to get a newer version of the module (runrig installed version 1.13).

      Update2: runrig notes that the change log (in README) says for 1.03 "Updated to use new PL_* symbols", so it looks even more like you just have an old version. (:

              - tye (but my friends call me "Tye")
        I neglected to include that I originally tried the top of the tree. Then, when that failed (required librt.so.1, which is not available for Sol2.6) I backed up to the most recent one which reported successful testing for solaris 2.6 on CPAN. All told, I spent about 6 hours tracing through dependencies, installing libraries, compilers, new makes, testing versions, changing the order of installation... all to have the developer tell me that he switched to ksh.

        I love my life, sometimes. Thank Larry that I get paid OT.