Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^11: ssh with perl

by daxim (Curate)
on Sep 19, 2013 at 13:46 UTC ( [id://1054857]=note: print w/replies, xml ) Need Help??


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

The explanation is in the middle: the installer could not download the pari C library archive on your system (proxy trouble???). Run:

cpanm --look Math::Pari

download ftp://megrez.math.u-bordeaux.fr/pub/pari/unix/OLD/pari-2.1.7.tgz manually into that directory, complete the installation by running:

tar -xvf pari-2.1.7.tgz perl Makefile.PL make make test sudo make install exit

If you encounter problems with this, again provide the output.

When this manual installation of Math::Pari is successful, then you can attempt the Net::SSH::Perl installation again.

Replies are listed 'Best First'.
Re^12: ssh with perl
by Anonymous Monk on Mar 31, 2014 at 11:17 UTC

    In my case, cpanm failed because pari-2.1.7.tgz has been moved to a sub-directory. I also had to drop sudo as this will be installed to ~/perl5. So here are the revised instructions:

    Run: cpanm --look Math::Pari

    download ftp://megrez.math.u-bordeaux.fr/pub/pari/unix/OLD/2.1/pari-2.1.7.tgz manually into that directory, complete the installation by running:

    tar -xvf pari-2.1.7.tgz perl Makefile.PL make make test make install
Re^12: ssh with perl
by varalaxmibbnl (Acolyte) on Sep 20, 2013 at 06:25 UTC

    thank u so much.....:) Net::SSH::Perl got installed......but all this commands were not able to install don't know why...

    perl Makefile.PL make make test sudo make install

    now if i want to install Net::SSH2 can i do using cpan?

      now if i want to install Net::SSH2 can i do using cpan?

      :) when you tried what happened?

        when i tried i go the output as....

        Running install for module 'Net::SSH2' Running make for R/RK/RKITOVER/Net-SSH2-0.53.tar.gz Has already been unwrapped into directory /root/.cpan/build/Net-SSH2 +-0.53-xpmi_E No 'Makefile' created , won't make Running make test Make had some problems, won't test Running make install Make had some problems, won't install
Re^12: ssh with perl
by varalaxmibbnl (Acolyte) on Sep 20, 2013 at 07:08 UTC

    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.
      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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1054857]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (8)
As of 2024-03-29 13:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found