http://www.perlmonks.org?node_id=1054972


in reply to Re^11: ssh with perl
in thread ssh with perl

now if run this code

#!/usr/bin/perl use strict; use warnings; use Net::SSH::Perl; my $ip="xxx.xxx.xxx.xxx"; my $user = "xxxxx"; my $pass = "xxxx"; my $ssh = Net::SSH::Perl->new($ip, use_pty => 1); $ssh->login($user, $pass);
it is giving the following error....what to do now

Can't locate Math/Pari.pm in @INC (@INC contains: /etc/perl /usr/local +/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/sha +re/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_ +perl .) at /usr/local/share/perl/5.10.1/Net/SSH/Perl/Util/SSH2MP.pm l +ine 6. BEGIN failed--compilation aborted at /usr/local/share/perl/5.10.1/Net/ +SSH/Perl/Util/SSH2MP.pm line 6. Compilation failed in require at /usr/local/share/perl/5.10.1/Net/SSH/ +Perl/Util.pm line 56. BEGIN failed--compilation aborted at /usr/local/share/perl/5.10.1/Net/ +SSH/Perl/Kex/DH1.pm line 10. Compilation failed in require at /usr/local/share/perl/5.10.1/Net/SSH/ +Perl/Kex.pm line 6. BEGIN failed--compilation aborted at /usr/local/share/perl/5.10.1/Net/ +SSH/Perl/Kex.pm line 6. Compilation failed in require at /usr/local/share/perl/5.10.1/Net/SSH/ +Perl/SSH2.pm line 6. BEGIN failed--compilation aborted at /usr/local/share/perl/5.10.1/Net/ +SSH/Perl/SSH2.pm line 6. Compilation failed in require at /usr/local/share/perl/5.10.1/Net/SSH/ +Perl.pm line 55.