今日は一日net-snmpをインストールしていて、いろいろはまりポイントがあったので備忘のためメモしておく。過去に運用までメモしてあるので、そちらも参照の事。
$ tar -xvzf net-snmp-5.4.1.tar.gz
$ cd net-snmp-5.4.1
$ ./configure
途中いろいろ聞かれるけどEnter連打でOK.
# make
libtool: link: `/usr/lib/libbeecrypt.la' is not a valid libtool archive
libbeecrypt.laが必要→beecrypt-develをrpmからインストール。ヴァージョンはbeecryptとあわせる。
# rpm -Uvh beecrypt-4.1.2-8.i386.rpm
# rpm -ivh beecrypt-devel-4.1.2-8.i386.rpm
# cd net-snmp-5.4.1
# make (2回目)
/usr/bin/ld: cannot find -lelf
libelfが必要→libelf-0.8.10.tar.tarからインストール。configureオプション無し。
# tar -xvzf libelf-0.8.10.tar.tar
# cd libelf-0.8.10
# ./configure
# make
# make install
# cd net-snmp-5.4.1
# make (3回目)
cc1: invalid option `tune=pentium4'
makeの不正なオプション。当該部分を削除する。
# cd perl
vi Makefile
- 257 OPTIMIZE = -O2 -g -pipe -m32 -march=i386 -mtune=pentium4
+ 257 OPTIMIZE = -O2 -g -pipe -m32 -march=i386
# cd ../
# make (4回目)
# make test
# make install
【その他Web技術の最新記事】

