求助!关于NET::SSH::PERL的调用问题

求助!关于NET::SSH::PERL的调用问题

求助!关于NET::SSH::PERL的调用问题
各位大侠!我写了一个非常简单的ssh登录脚本,执行时报错。
脚本:
#!/usr/bin/perl
use Net::SSH::Perl;
$ssh=Net::SSH::Perl->new("192.168.0.1");
$ssh->login("abc","123");
$ssh->cmd("ls");
报错信息:
IBM-14225520F29: Reading configuration data /home/WAP/.ssh/config
IBM-14225520F29: Reading configuration data /etc/ssh_config
IBM-14225520F29: Connecting to 192.168.0.1, port 22.
IBM-14225520F29: Remote version string: SSH-1.99-OpenSSH_3.9p1

IBM-14225520F29: Remote protocol version 1.99, remote software version OpenSSH_3.9p1
Can't locate Math/Pari.pm in @INC (@INC contains: /usr/lib/perl5/5.8/cygwin /usr/lib/perl5/5.8 /usr/lib/perl5/site_perl/5.8/cygwin /usr/lib/perl5/site_perl/5.8/usr/lib/perl5/site_perl/5.8 /usr/lib/perl5/vendor_perl/5.8/cygwin /usr/lib/perl
5/vendor_perl/5.8 /usr/lib/perl5/vendor_perl/5.8 .) at /usr/lib/perl5/site_perl/5.8/Net/SSH/Perl/Util/SSH2MP.pm line 6.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8/Net/SSH/Perl/Util/SSH2MP.pm line 6.
Compilation failed in require at /usr/lib/perl5/site_perl/5.8/Net/SSH/Perl/Util.pm line 56.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8/Net/SSH/Perl/Kex/DH1.pm line 10.
Compilation failed in require at /usr/lib/perl5/site_perl/5.8/Net/SSH/Perl/Kex.pm line 6.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8/Net/SSH/Perl/Kex.pm line 6.
Compilation failed in require at /usr/lib/perl5/site_perl/5.8/Net/SSH/Perl/SSH2.pm line 6.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8/Net/SSH/Perl/SSH2.pm line 6.
Compilation failed in require at /usr/lib/perl5/site_perl/5.8/Net/SSH/Perl.pm line 54.

看上去,似乎是我缺少了部分.pm模块的安装,根据提示,我又下载了NET::SSH::PERL安装过程中所需要的模块,但是在安装时发现又需要有其它预安装的模块……如此恶性循环,没完没了。不知道各位大侠有什么好主意解决安装与调试问题?
谢谢!!!
急~~~~~~~
可以考虑 force install 或者 notest install
比如 cpan
cpan>force install Math::Pari

cpan>notest install Math::Pari