S
Senthilkumar T
Hi there,
I need your precious help in solving this error.
I call perl NET::SSH:erl to login a remote server—AIX MACHINE.
***********code*********
#!/usr/bin/perl
use Net::SSH:erl;
$host="wst32";
$user="training";
$pass="welcome";
my $ssh = Net::SSH:erl->new($host);
$ssh->login($user, $pass);
my($stdout, $stderr, $exit) = $ssh->cmd ($cmd);
*******************************
while running the code the error I get is:
Can't locate loadable object for module Math::GMP in @INC (@INC
contains:
/mksysb/ssh/Math-GMP-2.03/lib /usr/opt/perl5/lib/5.6.0/aix
/usr/opt/perl5/lib/5.6.0 /usr/opt/perl5/lib/site_perl/5.6.0/aix
/usr/opt/perl5/lib/site_perl/5.6.0 /usr/opt/perl5/lib/site_perl .)
at /usr/opt/perl5/lib/site_perl/5.6.0/Net/SSH/Perl/Util/SSH1MP.pm line
7
Compilation failed in require at
/usr/opt/perl5/lib/site_perl/5.6.0/Net/SSH/Perl/Util/SSH1MP.pm line 7,
<GEN0> line 1.
BEGIN failed--compilation aborted at
/usr/opt/perl5/lib/site_perl/5.6.0/Net/SSH/Perl/Util/SSH1MP.pm line 7,
<GEN0> line 1.
Compilation failed in require at
/usr/opt/perl5/lib/site_perl/5.6.0/Net/SSH/Perl/Util.pm line 56,
<GEN0> line 1.
BEGIN failed--compilation aborted at
/usr/opt/perl5/lib/site_perl/5.6.0/Net/SSH/Perl/Key/RSA1.pm line 6,
<GEN0> line 1.
Compilation failed in require at
/usr/opt/perl5/lib/site_perl/5.6.0/Net/SSH/Perl/SSH1.pm line 13,
<GEN0> line 1.
BEGIN failed--compilation aborted at
/usr/opt/perl5/lib/site_perl/5.6.0/Net/SSH/Perl/SSH1.pm line 13,
<GEN0> line 1.
Compilation failed in require at
/usr/opt/perl5/lib/site_perl/5.6.0/Net/SSH/Perl.pm line 51, <GEN0>
line 1.
***************
But
Gmp.pm is in path "/mksysb/ssh/Math-GMP-2.03/lib/Math/"
I need your precious help in solving this error.
I call perl NET::SSH:erl to login a remote server—AIX MACHINE.
***********code*********
#!/usr/bin/perl
use Net::SSH:erl;
$host="wst32";
$user="training";
$pass="welcome";
my $ssh = Net::SSH:erl->new($host);
$ssh->login($user, $pass);
my($stdout, $stderr, $exit) = $ssh->cmd ($cmd);
*******************************
while running the code the error I get is:
Can't locate loadable object for module Math::GMP in @INC (@INC
contains:
/mksysb/ssh/Math-GMP-2.03/lib /usr/opt/perl5/lib/5.6.0/aix
/usr/opt/perl5/lib/5.6.0 /usr/opt/perl5/lib/site_perl/5.6.0/aix
/usr/opt/perl5/lib/site_perl/5.6.0 /usr/opt/perl5/lib/site_perl .)
at /usr/opt/perl5/lib/site_perl/5.6.0/Net/SSH/Perl/Util/SSH1MP.pm line
7
Compilation failed in require at
/usr/opt/perl5/lib/site_perl/5.6.0/Net/SSH/Perl/Util/SSH1MP.pm line 7,
<GEN0> line 1.
BEGIN failed--compilation aborted at
/usr/opt/perl5/lib/site_perl/5.6.0/Net/SSH/Perl/Util/SSH1MP.pm line 7,
<GEN0> line 1.
Compilation failed in require at
/usr/opt/perl5/lib/site_perl/5.6.0/Net/SSH/Perl/Util.pm line 56,
<GEN0> line 1.
BEGIN failed--compilation aborted at
/usr/opt/perl5/lib/site_perl/5.6.0/Net/SSH/Perl/Key/RSA1.pm line 6,
<GEN0> line 1.
Compilation failed in require at
/usr/opt/perl5/lib/site_perl/5.6.0/Net/SSH/Perl/SSH1.pm line 13,
<GEN0> line 1.
BEGIN failed--compilation aborted at
/usr/opt/perl5/lib/site_perl/5.6.0/Net/SSH/Perl/SSH1.pm line 13,
<GEN0> line 1.
Compilation failed in require at
/usr/opt/perl5/lib/site_perl/5.6.0/Net/SSH/Perl.pm line 51, <GEN0>
line 1.
***************
But
Gmp.pm is in path "/mksysb/ssh/Math-GMP-2.03/lib/Math/"