in reply to using Net::SSH::Perl: problem with Math::Pari

The way I manage to install Net::SSH::Perl thru hand installing Math::Pari on a Debian System

download
ftp://megrez.math.u-bordeaux.fr/pub/pari/unix/OLD/pari-2.1.7.tgz
http://search.cpan.org/CPAN/authors/id/I/IL/ILYAZ/modules/Math-Pari-2.0305_01080604a.tar.gz
unpack everything and copy the Math-Pari folder inside the pari folder
then make Math-Pari as usual
steps: > tar xvfz pari-2.1.7.tgz > cd pari-2.1.7 > mv ../Math-Pari-2.0305_01080604a.tar.gz . > tar xvfz Math-Pari-2.0305_01080604a.tar.gz > cd Math-Pari-2.0305_01080604a > perl Makefile.PL && make && make test && make install > perl -MCPAN -e 'install Net::SSH::Perl'

Replies are listed 'Best First'.
using Net::SSH::Perl: problem with Math::Pari
by rahulsivan (Initiate) on Jun 28, 2010 at 08:54 UTC
    HI
    am using the following code


    my $user = "root";
    my $pass = "root";
    my $host = "192.168.239.108";
    my $cmd = "ls";
    use Net::SSH::Perl;
    my $ssh = Net::SSH::Perl->new($host);
    $ssh->login($user, $pass);
    my($stdout, $stderr, $exit) = $ssh->cmd($cmd);
    print("$stdout, $stderr, $exit");


    but am getting the bellow response
    "Can't set socket non-blocking: Bad file descriptor at C:/Perl/site/lib/Net/SSH/Perl.pm line 216."




    can some one tell me the reason for this response?