2012年12月6日 星期四

[ubuntu][net-snmp] How to install net-snmp into Ubuntu 10.04


1. Catch net-snmp-5.7.2 from net-snmp web site.
tar xvf net-snmp-5.7.2.tar.gz

2. Install dependent library ( libperl-dev )
sudo apt-get install libperl-dev

3. cd net-snmp-5.7.2
./configure --with-default-snmp-version="3" --with-sys-contact="@@no.where" --with-sys-location="Unknown" --with-logfile="/var/log/snmpd.log" --with-persistent-directory="/var/net-snmp"

4. make && make install
sudo make
sudo make install

5. Execute " snmpget --version "
Error message

snmpget: error while loading shared libraries: libnetsnmp.so.30: cannot open shared object file: No such file or directory


Solve :
cp /usr/local/lib/libnetsnmp.so.30 /usr/lib

Reference:
  1. Ubuntu下安装net-snmp

Related Posts:

0 意見:

張貼留言