Re: iperf install problem
libstdc++ is a prerequisite. Please give the list more info about your
system, OS etc. If your using Linux, which i guess you are, then you
need to make sure that you have that installed. If your in redhat you
should use the rpm or the tarball for any other flavor.
On Tue, 2003-07-01 at 17:53, Mitch Kutzko wrote:
> >From: "Spink, David" <David.Spink --at-- cpships.com>
> >To: "'dast --at-- nlanr.net'" <dast --at-- nlanr.net>
> >Subject: iperf install problem
> >Date: Tue, 1 Jul 2003 17:45:34 -0400
> >
> >Hi,
> >
> >Found your software on freshmeat and thought it would be very cool to try
> >out. I've a problem when trying to execute the program as a library file
> >libstdc++.so.2.10.0 is missing. Should the library form part of the install
> >or is there some other prerequiste that I need? Or am I making some other
> >basic mistake?
> >
> >Thanks in advance.
> >
> >regards,
> >david
> >
> >see details below....
> >
> >host:
> >e10k domain, solaris 8
> >
> >error:
> >d1ua0002:/usr/local/bin# iperf -s
> >ld.so.1: iperf: fatal: libstdc++.so.2.10.0: open failed: No such file or
> >directory
> >Killed
> >
> >truss output:
> >stat("/usr/lib/libstdc++.so.2.10.0", 0xFFBEF49C) Err#2 ENOENT
> >ld.so.1: iperf: fatal: libstdc++.so.2.10.0: open failed: No such file or
> >directory
> >write(2, " l d . s o . 1 : i p e".., 83) = 83
> >munmap(0xFF390000, 8192) = 0
> >lwp_self() = 1
> > *** process killed ***
> >
> >problem:
> >appears there is no libstdc++.so.2.10.0 file
> >
> >install method:
> >download iperf-1.7.0-source.tar.gz from
> >http://dast.nlanr.net/Projects/Iperf/#download
> >gunzip ...
> >tar -xvf ...
> >
> >make output:
> >d1ua0002:/tmp/iperf-1.7.0# make
> >rm -f cfg/config.h
> >make config
> >
> >./configure
> >checking for gcc... gcc
> >checking for C compiler default output... a.out
> >checking whether the C compiler works... yes
> >checking whether we are cross compiling... no
> >checking for executable suffix...
> >checking for object suffix... o
> >checking whether we are using the GNU C compiler... yes
> >checking whether gcc accepts -g... yes
> >checking for g++... g++
> >checking whether we are using the GNU C++ compiler... yes
> >checking whether g++ accepts -g... yes
> >checking for ranlib... ranlib
> >checking build system type... sparc-sun-solaris2.8
> >checking host system type... sparc-sun-solaris2.8
> >checking how to run the C preprocessor... gcc -E
> >checking for pthread.h... yes
> >checking whether pthreads work with -pthread... no
> >checking whether pthreads work with -pthreads... yes
> >checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
> >checking if more special flags are required for pthreads... -D_REENTRANT
> >checking for cc_r... gcc
> >checking for gethostbyname without -lnsl... no
> >checking for gethostbyname in -lnsl... yes
> >checking for socket without -lsocket... no
> >checking for socket in -lsocket... yes
> >checking for strings.h... yes
> >checking for ANSI C header files... yes
> >checking for sys/types.h... yes
> >checking for sys/stat.h... yes
> >checking for stdlib.h... yes
> >checking for string.h... yes
> >checking for memory.h... yes
> >checking for strings.h... (cached) yes
> >checking for inttypes.h... yes
> >checking for stdint.h... no
> >checking for unistd.h... yes
> >checking for short... yes
> >checking size of short... 2
> >checking for int... yes
> >checking size of int... 4
> >checking for long... yes
> >checking size of long... 4
> >checking for long long... yes
> >checking size of long long... 8
> >checking for unsigned short... yes
> >checking size of unsigned short... 2
> >checking for unsigned int... yes
> >checking size of unsigned int... 4
> >checking for unsigned long... yes
> >checking size of unsigned long... 4
> >checking for unsigned long long... yes
> >checking size of unsigned long long... 8
> >checking for int16_t... yes
> >checking for int32_t... yes
> >checking for int64_t... yes
> >checking for u_int16_t... unsigned short
> >checking for u_int32_t... unsigned int
> >checking for u_int64_t... unsigned long long
> >checking 3rd argument of accept... socklen_t
> >checking for size_t... yes
> >checking for ssize_t... yes
> >checking for snprintf... yes
> >checking for inet_pton... yes
> >checking for inet_ntop... yes
> >checking for gettimeofday... yes
> >checking for pthread_cancel... yes
> >checking for usleep... yes
> >checking for bool... yes
> >checking size of bool...
> >checking if true is defined... yes
> >checking whether byte ordering is bigendian... yes
> >checking for multicast support... yes
> >checking for IPv6 headers and structures... yes
> >configure: creating ./config.status
> >config.status: creating ../Makefile.rules
> >config.status: creating config.h
> >rm -f lib/libdast.a
> >
> >g++ -I../cfg -Wall -O2 -D_REENTRANT -pthreads -DHAVE_CONFIG_H -c Socket.cpp
> >g++ -I../cfg -Wall -O2 -D_REENTRANT -pthreads -DHAVE_CONFIG_H -c
> >SocketAddr.cpp
> >g++ -I../cfg -Wall -O2 -D_REENTRANT -pthreads -DHAVE_CONFIG_H -c Thread.cpp
> >g++ -I../cfg -Wall -O2 -D_REENTRANT -pthreads -DHAVE_CONFIG_H -c delay.cpp
> >gcc -I../cfg -Wall -O2 -D_REENTRANT -pthreads -DHAVE_CONFIG_H -c error.c
> >gcc -I../cfg -Wall -O2 -D_REENTRANT -pthreads -DHAVE_CONFIG_H -c
> >gnu_getopt.c
> >gcc -I../cfg -Wall -O2 -D_REENTRANT -pthreads -DHAVE_CONFIG_H -c
> >gnu_getopt_long.c
> >gcc -I../cfg -Wall -O2 -D_REENTRANT -pthreads -DHAVE_CONFIG_H -c signal.c
> >gcc -I../cfg -Wall -O2 -D_REENTRANT -pthreads -DHAVE_CONFIG_H -c sockets.c
> >gcc -I../cfg -Wall -O2 -D_REENTRANT -pthreads -DHAVE_CONFIG_H -c stdio.c
> >gcc -I../cfg -Wall -O2 -D_REENTRANT -pthreads -DHAVE_CONFIG_H -c string.c
> >gcc -I../cfg -Wall -O2 -D_REENTRANT -pthreads -DHAVE_CONFIG_H -c
> >tcp_window_size.c
> >ar cr ../lib/libdast.a Socket.o SocketAddr.o Thread.o
> >delay.o error.o gnu_getopt.o gnu_getopt_long.o
> >signal.o sockets.o stdio.o string.o
> >tcp_window_size.o
> >ranlib ../lib/libdast.a
> >rm -f iperf
> >
> >g++ -I../lib -I../cfg -Wall -O2 -D_REENTRANT -pthreads -DHAVE_CONFIG_H -c
> >Client.cpp
> >g++ -I../lib -I../cfg -Wall -O2 -D_REENTRANT -pthreads -DHAVE_CONFIG_H -c
> >Extractor.cpp
> >g++ -I../lib -I../cfg -Wall -O2 -D_REENTRANT -pthreads -DHAVE_CONFIG_H -c
> >Listener.cpp
> >g++ -I../lib -I../cfg -Wall -O2 -D_REENTRANT -pthreads -DHAVE_CONFIG_H -c
> >PerfSocket.cpp
> >g++ -I../lib -I../cfg -Wall -O2 -D_REENTRANT -pthreads -DHAVE_CONFIG_H -c
> >PerfSocket_TCP.cpp
> >g++ -I../lib -I../cfg -Wall -O2 -D_REENTRANT -pthreads -DHAVE_CONFIG_H -c
> >PerfSocket_UDP.cpp
> >g++ -I../lib -I../cfg -Wall -O2 -D_REENTRANT -pthreads -DHAVE_CONFIG_H -c
> >Server.cpp
> >g++ -I../lib -I../cfg -Wall -O2 -D_REENTRANT -pthreads -DHAVE_CONFIG_H -c
> >Settings.cpp
> >g++ -I../lib -I../cfg -Wall -O2 -D_REENTRANT -pthreads -DHAVE_CONFIG_H -c
> >Speaker.cpp
> >g++ -I../lib -I../cfg -Wall -O2 -D_REENTRANT -pthreads -DHAVE_CONFIG_H -c
> >Notify.cpp
> >g++ -I../lib -I../cfg -Wall -O2 -D_REENTRANT -pthreads -DHAVE_CONFIG_H -c
> >Audience.cpp
> >g++ -I../lib -I../cfg -Wall -O2 -D_REENTRANT -pthreads -DHAVE_CONFIG_H -c
> >List.cpp
> >g++ -I../lib -I../cfg -Wall -O2 -D_REENTRANT -pthreads -DHAVE_CONFIG_H -c
> >main.cpp
> >g++ -o ../iperf -D_REENTRANT -pthreads Client.o Extractor.o
> >Listener.o PerfSocket.o PerfSocket_TCP.o PerfSocket_UDP.o
> >Server.o Settings.o Speaker.o Notify.o
> >Audience.o List.o main.o -L../lib -ldast -lsocket -lnsl
> >
> >make install output:
> >d1ua0002:/tmp/iperf-1.7.0# make install
> >
> >Where should the iperf binary be installed? [/usr/local/bin]
> >
> >../install-sh -c -d /usr/local/bin
> >../install-sh -c ../iperf /usr/local/bin
> >
> >
> --
> Mitch Kutzko | mitch --at-- dast.nlanr.net | mitch --at-- ncsa.uiuc.edu | 217-333-1199
> http://hobbes.ncsa.uiuc.edu/
--
Edson Manners <emanners --at-- realprod.acns.fsu.edu>
Florida State University