在solaris上安装iperf

iperf是测试带宽的工具

1. 从sunfreeware下载iperf的二进制文件

2. conifgure

3. make, 报错

Undefined                       first referenced
 symbol                             in file
nanosleep                           ../compat/libcompat.a(delay.o)
ld: fatal: Symbol referencing errors. No output written to iperf
collect2: ld returned 1 exit status
make[2]: *** [iperf] Error 1
make[2]: Leaving directory `/export/home/nancy/iperf-2.0.5/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/export/home/nancy/iperf-2.0.5'

make: *** [all] Error 2 

4. 修改make文件

1) Makefile

删除

AM_CXXFLAGS = -Wall
AM_FLAGS = -Wall 

2) src目录下的makefile

LIBS = -lsocket -lnsl 

修改为 

LIBS = -lsocket -lnsl -lrt 

5. make & make install

 这样就可以用了。

解决方案参考: http://www.mail-archive.com/iperf-users@lists.sourceforge.net/msg00168.html

posted @ 2012-08-15 13:51  盈盈的工作小纸条  阅读(517)  评论(0编辑  收藏  举报