activerperl,使用Net::SSH::Perl时遇到:Can't set socket non-blocking: Bad file
感谢“撒哈拉里的鱼”,让我顺利地在activeperl中用ppm安装了Net::SSH::Perl和DBD::Oracle模块,其中,DBD::Oracle模块测试通过.
刚才在测试Net::SSH::Perl模块时,遇到以下问题:
C:\Perl\my>perl 2
Math::BigInt: couldn't load specified math lib(s), fallback to Math::BigInt::FastCalc at C
:/Perl/site/lib/Crypt/DH.pm line 6
Can't set socket non-blocking: Bad file descriptor at C:/Perl/site/lib/Net/SSH/Perl.pm lin
e 213, <GEN0> line 1.
我用ppm install Math::BigInt,它说“No missing packages to install”。
请问各位,在activeperl中使用Net::SSH::Perl,还要做什么配置啊,谢谢!
我的测试脚本如下:
#!/usr/bin/perl
use strict;
use warnings;
use Net::SSH::Perl;
my $ssh=Net::SSH::Perl->new("127.0.0.1");
$ssh->login("Administrator","jjqing");
my @my_result = $ssh -> cmd("dir");
print "ssh test : dir is\n @my_result \n";