免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2683 | 回复: 1
打印 上一主题 下一主题

在Fedora下安装NetSNMP-default_store的问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-01-17 15:20 |只看该作者 |倒序浏览
请教各位:

[test@MRTG program]$ ./scan.pl
Can't load '/usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/NetSNMP/default_store/default_store.so' for module NetSNMP::default_store: libnetsnmp.so.5: cannot open shared object file: No such file or directory at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/DynaLoader.pm line 230.
at /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/SNMP.pm line 16
Compilation failed in require at /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/SNMP.pm line 16.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/SNMP.pm line 16.
Compilation failed in require at ./scan.pl line 15.
BEGIN failed--compilation aborted at ./scan.pl line 15.

脚本15行是: “  use SNMP;  ”
怀疑是因为 NetSNMP-default_store 模块没有安装问题,机器上已经装了net-snmp, 然后去 http://search.cpan.org/~hardaker/NetSNMP-default_store-5.0301/


这里下了一个,  NetSNMP-default_store-5.0301.tar.gz 包,  然后按照包里的Readme 安装

[root@MRTG NetSNMP-default_store-5.0301]# more README This module is a wrapper around the net-snmp default store routines.
See the net-snmp default_store manual page for details.

To install:
  perl Makefile.PL
  make
  make test
  make install

To compile in the source tree before the net-snmp itself has been installed:
  perl Makefile.PL -NET-SNMP-CONFIG="sh ../../net-snmp-config" -NET-SNMP-IN-SOURCE=true
  make
  make test
  make install

不能正常安装, make test 时发现下面的错误:...................................
Running Mkbootstrap for NetSNMP::default_store ()
chmod 644 default_store.bs
rm -f blib/arch/auto/NetSNMP/default_store/default_store.so
gcc  -shared -L/usr/local/lib default_store.o  -o blib/arch/auto/NetSNMP/default_store/default_store.so         \
   -L/usr/local/lib -lnetsnmp -lm       \
  
chmod 755 blib/arch/auto/NetSNMP/default_store/default_store.so
cp default_store.bs blib/arch/auto/NetSNMP/default_store/default_store.bs
chmod 644 blib/arch/auto/NetSNMP/default_store/default_store.bs
PERL_DL_NONLAZY=1 /usr/bin/perl "-Iblib/lib" "-Iblib/arch" test.pl
1..64
Can't load 'blib/arch/auto/NetSNMP/default_store/default_store.so' for module NetSNMP::default_store: libnetsnmp.so.5: cannot open shared object file: No such file or directory at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/DynaLoader.pm line 230.
at test.pl line 71
Compilation failed in require at test.pl line 71.
BEGIN failed--compilation aborted at test.pl line 71.
not ok 1
make: *** [test_dynamic] Error 2

请高手指教,谁碰到过这种问题,如何解决,谢谢了。

论坛徽章:
0
2 [报告]
发表于 2007-01-17 16:13 |只看该作者
好了,还是动态库的问题。

echo /usr/local/lib >/etc/ld.so.conf.d/libnetsnmp.conf
/sbin/ldconfig -v
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP