Tags:
create new tag
view all tags

KeyWords: SysAdmin, Solaris, Iperf

Compiling Iperf on Solaris 10

Compiling Iperf on Solaris 10 turned out to be more difficult than foreseen; there are a few bugs in the configure scripts that must be corrected.

This instructions assume you want to use the gcc compiler as packages by BlastWave.org::

  # install the gcc/g++ compiler (will install dependent binutils)
  pkg-get -i gcc4core gcc4g++ binutils
  
  # make sure it's all in the PATH
  PATH=$PATH:/opt/csw/gcc4/bin:/opt/csw/i386-pc-solaris2.8/bin
The exact same procedure applies if you want to use the gcc compiler Sun provides in /usr/sfw; just substitute the appropriate paths.

0) Download and unpack the iperf sources to directory /tmp/iperf-2.0.4.

1) Run the ./configure script, pointing it to the correct c++ compiler:

/tmp/iperf-2.0.4# ./configure CXX=/opt/csw/gcc4/bin/g++

2) Now patch the generated =Makefile='s, to use "-lpthread -lrt" instead of "-pthread":

/tmp/iperf-2.0.4# find . -name Makefile | (while read file; do sed -e 's/-lpthread/-lpthread -lrt/g;' < $file > ${file}.NEW && mv ${file}.NEW $file; done)

3) Now make it and test it:

/tmp/iperf-2.0.4# make
...
/tmp/iperf-2.0.4# ./src/iperf -h
Usage: iperf [-s|-c host] [options]
       iperf [-h|--help] [-v|--version]

...

Readers' comments

 
Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2008-10-28 - RiccardoMurri
 
This site is powered by the TWiki collaboration platform Powered by Perl This site is powered by the TWiki collaboration platformCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback