root@ubuntu:~# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=9.10
DISTRIB_CODENAME=karmic
DISTRIB_DESCRIPTION="Ubuntu 9.10"
- dnsperf/resperf が必要とするパッケージのインストール
# もしかしらたら不要なパッケージもあるかもしれないけど、これでうまくいった
root@ubuntu:~# apt-get install libbind-dev build-essential libssl-dev
root@ubuntu:~# apt-get install dnsutils bind9
root@ubuntu:~# apt-get install libcap-dev tshark
- シンボリックリンクの作成
root@ubuntu:~# cd /usr/lib/
root@ubuntu:/usr/lib# ln -s libgssapi_krb5.so.2.2 libgssapi_krb5.so
root@ubuntu:/usr/lib# ln -s libxml2.so.2.7.5 libxml2.so
root@ubuntu:~# pwd
/root
root@ubuntu:~# wget ftp://ftp.nominum.com/pub/nominum/dnsperf/1.0.1.0/dnsperf-src-1.0.1.0-1.tar.gz
root@ubuntu:~# tar xzvf dnsperf-src-1.0.1.0-1.tar.gz
root@ubuntu:~# cd dnsperf-src-1.0.1.0-1
root@ubuntu:~/dnsperf-src-1.0.1.0-1# ./configure
root@ubuntu:~/dnsperf-src-1.0.1.0-1# make
root@ubuntu:~/dnsperf-src-1.0.1.0-1# make install
mkdir -p /usr/local/bin
mkdir -p /usr/local/man/man1
/usr/bin/install -c dnsperf /usr/local/bin
/usr/bin/install -c resperf /usr/local/bin
/usr/bin/install -c resperf-report /usr/local/bin
/usr/bin/install -c -m 644 dnsperf.1 /usr/local/man/man1
/usr/bin/install -c -m 644 resperf.1 /usr/local/man/man1
root@ubuntu:~/dnsperf-src-1.0.1.0-1#
root@ubuntu:~# which dnsperf
/usr/local/bin/dnsperf
root@ubuntu:~# which resperf
/usr/local/bin/resperf
root@ubuntu:~#
Done!
-----------------
実際に出たエラー、コマンドログも残しとこう。。
root@ubuntu:~# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=9.10
DISTRIB_CODENAME=karmic
DISTRIB_DESCRIPTION="Ubuntu 9.10"
root@ubuntu:~# apt-get install libbind-dev build-essential libssl-dev
root@ubuntu:~# apt-get install dnsutils bind9
root@ubuntu:~# wget ftp://ftp.nominum.com/pub/nominum/dnsperf/1.0.1.0/dnsperf-src-1.0.1.0-1.tar.gz
root@ubuntu:~# tar xzvf dnsperf-src-1.0.1.0-1.tar.gz
root@ubuntu:~# cd dnsperf-src-1.0.1.0-1
root@ubuntu:~/dnsperf-src-1.0.1.0-1# ./configure
root@ubuntu:~/dnsperf-src-1.0.1.0-1# make
gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -
DHAVE_LIBNSL=1 dnsperf.o common.o -lnsl -L/usr/lib -lbind9 -ldns -L/usr/lib -lgssapi_krb5 -lcrypto -lisccfg -lisc -lcap -
lpthread -lxml2 -lm -o dnsperf
/usr/bin/ld: cannot find -lgssapi_krb5
collect2: ld returned 1 exit status
make: *** [dnsperf] エラー 1
root@ubuntu:~/dnsperf-src-1.0.1.0-1#
root@ubuntu:~/dnsperf-src-1.0.1.0-1# find / -name \*gssapi_krb5\*
/usr/lib/libgssapi_krb5.so.2.2
/usr/lib/libgssapi_krb5.so.2
root@ubuntu:~/dnsperf-src-1.0.1.0-1#
root@ubuntu:~/dnsperf-src-1.0.1.0-1# cd /usr/lib/
root@ubuntu:/usr/lib# ln -s libgssapi_krb5.so.2.2 libgssapi_krb5.so
root@ubuntu:~/dnsperf-src-1.0.1.0-1# make
gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -
DHAVE_LIBNSL=1 dnsperf.o common.o -lnsl -L/usr/lib -lbind9 -ldns -L/usr/lib -lgssapi_krb5 -lcrypto -lisccfg -lisc -lcap -
lpthread -lxml2 -lm -o dnsperf
/usr/bin/ld: cannot find -lcap
collect2: ld returned 1 exit status
make: *** [dnsperf] エラー 1
root@ubuntu:~/dnsperf-src-1.0.1.0-1#
root@ubuntu:~/dnsperf-src-1.0.1.0-1# apt-get install libcap-dev tshark
root@ubuntu:~/dnsperf-src-1.0.1.0-1# make
gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -
DHAVE_LIBNSL=1 dnsperf.o common.o -lnsl -L/usr/lib -lbind9 -ldns -L/usr/lib -lgssapi_krb5 -lcrypto -lisccfg -lisc -lcap -
lpthread -lxml2 -lm -o dnsperf
/usr/bin/ld: cannot find -lxml2
collect2: ld returned 1 exit status
make: *** [dnsperf] エラー 1
root@ubuntu:~/dnsperf-src-1.0.1.0-1# apt-get install apt-file
root@ubuntu:~/dnsperf-src-1.0.1.0-1# apt-file update
root@ubuntu:/usr/lib# ln -s libxml2.so.2.7.5 libxml2.so
root@ubuntu:~/dnsperf-src-1.0.1.0-1# make
gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -
DHAVE_LIBNSL=1 dnsperf.o common.o -lnsl -L/usr/lib -lbind9 -ldns -L/usr/lib -lgssapi_krb5 -lcrypto -lisccfg -lisc -lcap -
lpthread -lxml2 -lm -o dnsperf
gcc -I/usr/include -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DPACKAGE_NAME=\"\" -
DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DHAVE_LIBNSL=1 -c resperf.c
gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -
DHAVE_LIBNSL=1 resperf.o common.o -lnsl -L/usr/lib -lbind9 -ldns -L/usr/lib -lgssapi_krb5 -lcrypto -lisccfg -lisc -lcap -
lpthread -lxml2 -lm -o resperf
root@ubuntu:~/dnsperf-src-1.0.1.0-1# make install
mkdir -p /usr/local/bin
mkdir -p /usr/local/man/man1
/usr/bin/install -c dnsperf /usr/local/bin
/usr/bin/install -c resperf /usr/local/bin
/usr/bin/install -c resperf-report /usr/local/bin
/usr/bin/install -c -m 644 dnsperf.1 /usr/local/man/man1
/usr/bin/install -c -m 644 resperf.1 /usr/local/man/man1
root@ubuntu:~/dnsperf-src-1.0.1.0-1#
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=9.10
DISTRIB_CODENAME=karmic
DISTRIB_DESCRIPTION="Ubuntu 9.10"
- dnsperf/resperf が必要とするパッケージのインストール
# もしかしらたら不要なパッケージもあるかもしれないけど、これでうまくいった
root@ubuntu:~# apt-get install libbind-dev build-essential libssl-dev
root@ubuntu:~# apt-get install dnsutils bind9
root@ubuntu:~# apt-get install libcap-dev tshark
- シンボリックリンクの作成
root@ubuntu:~# cd /usr/lib/
root@ubuntu:/usr/lib# ln -s libgssapi_krb5.so.2.2 libgssapi_krb5.so
root@ubuntu:/usr/lib# ln -s libxml2.so.2.7.5 libxml2.so
- dnsperf/resperf のコンパイル
root@ubuntu:~# pwd
/root
root@ubuntu:~# wget ftp://ftp.nominum.com/pub/nominum/dnsperf/1.0.1.0/dnsperf-src-1.0.1.0-1.tar.gz
root@ubuntu:~# tar xzvf dnsperf-src-1.0.1.0-1.tar.gz
root@ubuntu:~# cd dnsperf-src-1.0.1.0-1
root@ubuntu:~/dnsperf-src-1.0.1.0-1# ./configure
root@ubuntu:~/dnsperf-src-1.0.1.0-1# make
root@ubuntu:~/dnsperf-src-1.0.1.0-1# make install
mkdir -p /usr/local/bin
mkdir -p /usr/local/man/man1
/usr/bin/install -c dnsperf /usr/local/bin
/usr/bin/install -c resperf /usr/local/bin
/usr/bin/install -c resperf-report /usr/local/bin
/usr/bin/install -c -m 644 dnsperf.1 /usr/local/man/man1
/usr/bin/install -c -m 644 resperf.1 /usr/local/man/man1
root@ubuntu:~/dnsperf-src-1.0.1.0-1#
root@ubuntu:~# which dnsperf
/usr/local/bin/dnsperf
root@ubuntu:~# which resperf
/usr/local/bin/resperf
root@ubuntu:~#
Done!
-----------------
実際に出たエラー、コマンドログも残しとこう。。
root@ubuntu:~# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=9.10
DISTRIB_CODENAME=karmic
DISTRIB_DESCRIPTION="Ubuntu 9.10"
root@ubuntu:~# apt-get install libbind-dev build-essential libssl-dev
root@ubuntu:~# apt-get install dnsutils bind9
root@ubuntu:~# wget ftp://ftp.nominum.com/pub/nominum/dnsperf/1.0.1.0/dnsperf-src-1.0.1.0-1.tar.gz
root@ubuntu:~# tar xzvf dnsperf-src-1.0.1.0-1.tar.gz
root@ubuntu:~# cd dnsperf-src-1.0.1.0-1
root@ubuntu:~/dnsperf-src-1.0.1.0-1# ./configure
root@ubuntu:~/dnsperf-src-1.0.1.0-1# make
gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -
DHAVE_LIBNSL=1 dnsperf.o common.o -lnsl -L/usr/lib -lbind9 -ldns -L/usr/lib -lgssapi_krb5 -lcrypto -lisccfg -lisc -lcap -
lpthread -lxml2 -lm -o dnsperf
/usr/bin/ld: cannot find -lgssapi_krb5
collect2: ld returned 1 exit status
make: *** [dnsperf] エラー 1
root@ubuntu:~/dnsperf-src-1.0.1.0-1#
root@ubuntu:~/dnsperf-src-1.0.1.0-1# find / -name \*gssapi_krb5\*
/usr/lib/libgssapi_krb5.so.2.2
/usr/lib/libgssapi_krb5.so.2
root@ubuntu:~/dnsperf-src-1.0.1.0-1#
root@ubuntu:~/dnsperf-src-1.0.1.0-1# cd /usr/lib/
root@ubuntu:/usr/lib# ln -s libgssapi_krb5.so.2.2 libgssapi_krb5.so
root@ubuntu:~/dnsperf-src-1.0.1.0-1# make
gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -
DHAVE_LIBNSL=1 dnsperf.o common.o -lnsl -L/usr/lib -lbind9 -ldns -L/usr/lib -lgssapi_krb5 -lcrypto -lisccfg -lisc -lcap -
lpthread -lxml2 -lm -o dnsperf
/usr/bin/ld: cannot find -lcap
collect2: ld returned 1 exit status
make: *** [dnsperf] エラー 1
root@ubuntu:~/dnsperf-src-1.0.1.0-1#
root@ubuntu:~/dnsperf-src-1.0.1.0-1# apt-get install libcap-dev tshark
root@ubuntu:~/dnsperf-src-1.0.1.0-1# make
gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -
DHAVE_LIBNSL=1 dnsperf.o common.o -lnsl -L/usr/lib -lbind9 -ldns -L/usr/lib -lgssapi_krb5 -lcrypto -lisccfg -lisc -lcap -
lpthread -lxml2 -lm -o dnsperf
/usr/bin/ld: cannot find -lxml2
collect2: ld returned 1 exit status
make: *** [dnsperf] エラー 1
root@ubuntu:~/dnsperf-src-1.0.1.0-1# apt-get install apt-file
root@ubuntu:~/dnsperf-src-1.0.1.0-1# apt-file update
root@ubuntu:/usr/lib# ln -s libxml2.so.2.7.5 libxml2.so
root@ubuntu:~/dnsperf-src-1.0.1.0-1# make
gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -
DHAVE_LIBNSL=1 dnsperf.o common.o -lnsl -L/usr/lib -lbind9 -ldns -L/usr/lib -lgssapi_krb5 -lcrypto -lisccfg -lisc -lcap -
lpthread -lxml2 -lm -o dnsperf
gcc -I/usr/include -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DPACKAGE_NAME=\"\" -
DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DHAVE_LIBNSL=1 -c resperf.c
gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -
DHAVE_LIBNSL=1 resperf.o common.o -lnsl -L/usr/lib -lbind9 -ldns -L/usr/lib -lgssapi_krb5 -lcrypto -lisccfg -lisc -lcap -
lpthread -lxml2 -lm -o resperf
root@ubuntu:~/dnsperf-src-1.0.1.0-1# make install
mkdir -p /usr/local/bin
mkdir -p /usr/local/man/man1
/usr/bin/install -c dnsperf /usr/local/bin
/usr/bin/install -c resperf /usr/local/bin
/usr/bin/install -c resperf-report /usr/local/bin
/usr/bin/install -c -m 644 dnsperf.1 /usr/local/man/man1
/usr/bin/install -c -m 644 resperf.1 /usr/local/man/man1
root@ubuntu:~/dnsperf-src-1.0.1.0-1#
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.