Difference between revisions of "Upref: instalasi"
Jump to navigation
Jump to search
Onnowpurbo (talk | contribs) |
Onnowpurbo (talk | contribs) |
||
(11 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
apt-get install kernel-package libncurses5-dev fakeroot wget bzip2 \ | apt-get install kernel-package libncurses5-dev fakeroot wget bzip2 \ | ||
− | fakeroot kernel-wedge build-essential makedumpfile libncurses5 | + | fakeroot kernel-wedge build-essential makedumpfile libncurses5 |
− | libssl-dev libssl1.0.0 libssl1.0.0-dbg | + | # libssl-dev libssl1.0.0 libssl1.0.0-dbg rds-tools |
+ | # libsctp1 libsctp-dev | ||
+ | |||
+ | ==Download uperf== | ||
+ | |||
+ | cd /usr/local/src | ||
+ | wget http://sourceforge.net/projects/uperf/files/uperf/uperf-1.0.4.tar.bz2 | ||
Line 12: | Line 18: | ||
tar jxvf uperf-1.0.4.tar.bz2 | tar jxvf uperf-1.0.4.tar.bz2 | ||
cd /usr/local/src/uperf-1.0.4 | cd /usr/local/src/uperf-1.0.4 | ||
− | ./configure | + | |
+ | Edit Makefile | ||
+ | |||
+ | vi Makefile | ||
+ | |||
+ | Pastikan / Tambahkan -lpthread | ||
+ | |||
+ | LIBS = -lrt -lm -lpthread | ||
+ | UPERF_LIBS = -lrt -lm -lpthread | ||
+ | |||
+ | |||
+ | Compile | ||
+ | |||
+ | ./configure --disable-sctp | ||
make | make | ||
+ | make install | ||
+ | |||
+ | |||
+ | ==Lokasi Penting== | ||
+ | |||
+ | File xml | ||
+ | |||
+ | /usr/local/src/uperf-1.0.4/workloads | ||
+ | |||
+ | File bin | ||
+ | |||
+ | /usr/local/bin/uperf | ||
+ | |||
+ | ==Error== | ||
+ | |||
+ | Jika Makefile tidak di tambah -lpthread di LIBS | ||
+ | |||
+ | gcc -D_GNU_SOURCE -O2 -D_REENTRANT -o uperf workorder.o strand.o execute.o flowops_library.o flowops.o common.o main.o slave.o stats.o handshake.o parse.o shm.o master.o print.o signals.o goodbye.o delay.o rate.o sendfilev.o logging.o netstat.o numbers.o sync.o protocol.o tcp.o generic.o udp.o -lrt -lm -lrt -lm | ||
+ | /usr/bin/ld: sync.o: undefined reference to symbol 'pthread_rwlock_wrlock@@GLIBC_2.2.5' | ||
+ | //lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command line | ||
+ | collect2: error: ld returned 1 exit status | ||
+ | make[2]: *** [uperf] Error 1 | ||
+ | make[2]: Leaving directory `/usr/local/src/uperf-1.0.4/src' | ||
+ | make[1]: *** [all-recursive] Error 1 | ||
+ | make[1]: Leaving directory `/usr/local/src/uperf-1.0.4' | ||
+ | make: *** [all] Error 2 | ||
+ | |||
+ | |||
+ | Jika masih error, coba jalankan manual | ||
+ | |||
+ | |||
+ | cd /usr/local/src/uperf-1.0.4/src | ||
+ | gcc -D_GNU_SOURCE -O2 -D_REENTRANT -o uperf workorder.o strand.o execute.o flowops_library.o flowops.o common.o main.o slave.o stats.o handshake.o parse.o shm.o master.o print.o signals.o goodbye.o delay.o rate.o sendfilev.o logging.o netstat.o numbers.o sync.o protocol.o tcp.o generic.o udp.o -lrt -lm -lrt -lm -lpthread | ||
+ | make | ||
make install | make install |
Latest revision as of 08:16, 5 June 2015
Instalasi Compiler
apt-get install kernel-package libncurses5-dev fakeroot wget bzip2 \ fakeroot kernel-wedge build-essential makedumpfile libncurses5 # libssl-dev libssl1.0.0 libssl1.0.0-dbg rds-tools # libsctp1 libsctp-dev
Download uperf
cd /usr/local/src wget http://sourceforge.net/projects/uperf/files/uperf/uperf-1.0.4.tar.bz2
Instalasi
mv uperf-1.0.4.tar.bz2 /usr/local/src/ cd /usr/local/src tar jxvf uperf-1.0.4.tar.bz2 cd /usr/local/src/uperf-1.0.4
Edit Makefile
vi Makefile
Pastikan / Tambahkan -lpthread
LIBS = -lrt -lm -lpthread UPERF_LIBS = -lrt -lm -lpthread
Compile
./configure --disable-sctp make make install
Lokasi Penting
File xml
/usr/local/src/uperf-1.0.4/workloads
File bin
/usr/local/bin/uperf
Error
Jika Makefile tidak di tambah -lpthread di LIBS
gcc -D_GNU_SOURCE -O2 -D_REENTRANT -o uperf workorder.o strand.o execute.o flowops_library.o flowops.o common.o main.o slave.o stats.o handshake.o parse.o shm.o master.o print.o signals.o goodbye.o delay.o rate.o sendfilev.o logging.o netstat.o numbers.o sync.o protocol.o tcp.o generic.o udp.o -lrt -lm -lrt -lm /usr/bin/ld: sync.o: undefined reference to symbol 'pthread_rwlock_wrlock@@GLIBC_2.2.5' //lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status make[2]: *** [uperf] Error 1 make[2]: Leaving directory `/usr/local/src/uperf-1.0.4/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/local/src/uperf-1.0.4' make: *** [all] Error 2
Jika masih error, coba jalankan manual
cd /usr/local/src/uperf-1.0.4/src gcc -D_GNU_SOURCE -O2 -D_REENTRANT -o uperf workorder.o strand.o execute.o flowops_library.o flowops.o common.o main.o slave.o stats.o handshake.o parse.o shm.o master.o print.o signals.o goodbye.o delay.o rate.o sendfilev.o logging.o netstat.o numbers.o sync.o protocol.o tcp.o generic.o udp.o -lrt -lm -lrt -lm -lpthread make make install