Subject: | Can't locate object method "blocking" via package "IO::Handle" |
I'm having some problems with your Perl SSH module. I keep receiving the following error:
[root@wecmserver2 coreit]# perl test.pl
Can't locate object method "blocking" via package "IO::Handle" at /usr/local/ActivePerl-5.8/lib/site_perl/5.8.6/Net/SSH/Perl.pm line 212, <GEN0> line 1.
BEGIN failed--compilation aborted at test.pl line 5.
I've attempted to reinstall the Net::SSH:Perl module with both Perl 5.8.3 and Perl 5.8.6 with the "perl -MCPAN -e 'install Net::SSH::Perl'" command and manually, but did not have any success. Also, I performed an extensive search online, but I didn't find anything useful.
The script I'm attempting to execute is very simple to test the functionality:
#!/usr/local/ActivePerl-5.8/bin/perl
use Net::SSH::Perl
my $ssh = Net::SSH::Perl->new("nistnet2.rtp.raleigh.ibm.com");
$ssh->login("root","wecm4ibm");
$output1 = $ssh->cmd("crontab -l");
$output2 = $ssh->cmd("la -al");
print "Output1: $output1\n";
print "Output2: $output2\n";
Any help would be greatly appreciated...
---------------------------------------------------------------
[root@wecmserver2 root]# perl -v
This is perl, v5.8.3 built for i386-linux-thread-multi
Copyright 1987-2003, Larry Wall
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using `man perl' or `perldoc perl'. If you have access to the
Internet, point your browser at http://www.perl.com/, the Perl Home Page.
[root@wecmserver2 root]#
------------------------------------------------------------------------
[root@wecmserver2 root]# uname -a
Linux wecmserver2 2.6.10-1.14_FC2smp #1 SMP Thu Feb 10 17:32:40 EST 2005 i686 i6
86 i386 GNU/Linux