Difference between revisions of "Upref: instalasi"

From OnnoWiki
Jump to navigation Jump to search
Line 21: Line 21:
 
  make  
 
  make  
 
  make install
 
  make install
 +
 +
Error
 +
 +
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

Revision as of 11:06, 4 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
./configure --disable-sctp
make 
make install

Error

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