Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^12: ssh with perl

by varalaxmibbnl (Acolyte)
on Sep 20, 2013 at 07:08 UTC ( #1054972=note: print w/ replies, xml ) Need Help??


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.


Comment on Re^12: ssh with perl
Select or Download Code
Re^13: ssh with perl
by daxim (Chaplain) on Sep 20, 2013 at 09:12 UTC
    You really need Math::Pari. Net::SSH::Perl will not work without it.

    I already gave you instructions how to manually install Math::Pari further up in this thread because the automatic installation did not work for you. However, you did not apply these instructions or did not apply them correctly, so Math::Pari did not get installed.

    Last chance, because your failure to learn makes me very tired: what happens when you manually install Math::Pari as instructed? Mind that I cannot see your screen, I do not know what you are doing and what output you see then, so you have to tell me everything. This is required! You should know this by now.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1054972]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (7)
As of 2014-07-29 01:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (211 votes), past polls