容器技术交流

 找回密码
 立即注册
查看: 3318|回复: 2

bsnmp_ucd安装出错,请教一下

[复制链接]
发表于 2009-12-8 11:28:11 | 显示全部楼层 |阅读模式
装的freebsd7.2-X64,看系统自带bsnmp,就开启了,发现自带的bsnmp只能看网络流量,其他cpu内存硬盘都看不了。

网上搜索一下,说要装bsnmp_ucd,下了bsnmp-ucd-0.3.0.tar.gz,这东西没有configure,我就直接make,提示错误:

  1. # make
  2. gensnmptree <ucd_tree.def -e ucdavis > ucd_oid.h
  3. gensnmptree <ucd_tree.def -p ucd_
  4. libtool --mode=compile cc -c -O2 -fno-strict-aliasing -pipe  -Wsystem-headers -Werror -Wall -Wno-format-y2k -W  -Wstrict-prototypes -Wmissing-prototypes  -Wpointer-arith -Wreturn-type -Wcast-qual  -Wwrite-strings -Wswitch -Wshadow -Wcast-align  -Wbad-function-cast -Wchar-subscripts -Winline  -Wnested-externs -Wredundant-decls -std=c99 -o ucd_tree.lo ucd_tree.c
  5. libtool: not found
  6. *** Error code 127
  7. Stop in /usr/bsnmp-ucd-0.3.0.
复制代码


他说缺少libtool,我就又下了libtool-2.2.6b.tar.gz。然后安装
./configure --prefix=/usr/local/libtool
make
make install clean
没有报错。

我再次安装bsnmp-ucd,仍然提示libtool: not found。我reboot,还是提示libtool: not found。我rm掉libtool,重新解包安装,,还是提示libtool: not found。



我有没有什么地方做错了。
 楼主| 发表于 2009-12-9 22:38:13 | 显示全部楼层
感觉可能是我libtool装的不对,今天重试了一下,先卸载掉libtool。

重装:
  1. ./configure
  2. make
  3. make install
复制代码
再装bsnmp-ucd
  1. make
  2. 提示错误

  3. # make
  4. gensnmptree <ucd_tree.def -e ucdavis > ucd_oid.h
  5. gensnmptree <ucd_tree.def -p ucd_
  6. libtool --mode=compile cc -c -O2 -fno-strict-aliasing -pipe  -Wsystem-headers -Werror -Wall -Wno-format-y2k -W  -Wstrict-prototypes -Wmissing-prototypes  -Wpointer-arith -Wreturn-type -Wcast-qual  -Wwrite-strings -Wswitch -Wshadow -Wcast-align  -Wbad-function-cast -Wchar-subscripts -Winline  -Wnested-externs -Wredundant-decls -std=c99 -o ucd_tree.lo ucd_tree.c
  7. libtool: compile: unable to infer tagged configuration
  8. libtool: compile: specify a tag with `--tag'
  9. *** Error code 1

  10. Stop in /usr/bsnmp-ucd-0.3.0.
复制代码
我慢慢研究吧。。。
 楼主| 发表于 2009-12-9 23:12:47 | 显示全部楼层
搞定,vi Makefile
在LIBTOOL=libtool后面加上 --tag CC
安装成功,snmp已经可以监控CPU、内存、磁盘了,呵呵,希望对像我一样的新手有用。
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Archiver|URLOS ( 粤ICP备18087780号 )

GMT+8, 2025-5-11 07:13 , Processed in 0.044494 second(s), 18 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表