in reply to problem with net::sftp

There seems to be a problem with Math::BigInt. The Makefile.PL recommends that the "recommends" be updated, so I included a little update in the script. This worked for me:

#!/usr/bin/perl use strict; use warnings; use CPAN; use Net::SFTP; CPAN::Shell->install( "Math::BigInt", "Math::BigInt::FastCalc", "Math::BigInt::GMP", "Math::BigInt::Pari", "Math::BigRat", "bignum", "Crypt::DSA", "Crypt::DH"); my %args = ( user => 'user', password => 'password', debug => '1'); my $sftp = Net::SFTP->new('localhost', %args); print "Connected.....\n" if $sftp;

Replies are listed 'Best First'.
Re^2: problem with net::sftp
by scoobyrico (Beadle) on May 20, 2009 at 22:09 UTC
    Thanks for this post After installing all of those packages I still hang in the exact same spot as OP. I did notice that it has to do with us running in a mod_perl env. If ran from the command line or a reg perl file by apache it works like a charm. My sys admins are at a loss and so am I as to which ENV settings are wrong. Any further help would be most appreciated