- 论坛徽章:
- 0
|
现象:
我在安装一个SNMP的perl模块时,运行出错,错误如下:
[dxy@test SNMP]$ perl Makefile.PL -NET-SNMP-PATH=/home/dxy/snmp/snmp-4.2.4
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "zh_cn",
LC_ALL = "zh_cn",
LANG = "zh_cn"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
WARNING: MAN3PODS takes a hash reference not a string/number.
Please inform the author.
WARNING: LDFLAGS is not a known parameter.
Checking if your kit is complete...
Looks good
Can't use string ("SNMP") as a HASH ref while "strict refs" in use at /usr/lib/perl5/5.8.0/ExtUtils/MM_Unix.pm line 541.
问题:
1.我看到当前目录有一个SNMP.pm, 该错误如何解决?这个错误提示是不是找不到SNMP.pm包?
2.因为不懂perl,我当时假定那是因为没有安装SNMP.pm包,然后,按照网上的说明运行以下命令,但是出现“死机”现象(主机长时间没反应):
[dxy@test SNMP]$ perl -MCPAN -e shell
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "zh_cn",
LC_ALL = "zh_cn",
LANG = "zh_cn"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
cpan shell -- CPAN exploration and modules installation (v1.61)
ReadLine support available (try 'install Bundle::CPAN')
cpan> install SNMP;
CPAN: Storable loaded ok
CPAN: LWP::UserAgent loaded ok
Fetching with LWP:
ftp://ftp.ucr.ac.cr/pub/Unix/CPAN/authors/01mailrc.txt.gz
请问这个问题有如何解决?
[ 本帖最后由 lwj_dxy 于 2005-11-14 14:13 编辑 ] |
|