惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

V
V2EX
C
Check Point Blog
博客园_首页
B
Blog
D
Docker
U
Unit 42
量子位
I
InfoQ
有赞技术团队
有赞技术团队
Martin Fowler
Martin Fowler
GbyAI
GbyAI
L
LangChain Blog
云风的 BLOG
云风的 BLOG
博客园 - Franky
美团技术团队
T
The Blog of Author Tim Ferriss
阮一峰的网络日志
阮一峰的网络日志
月光博客
月光博客
Vercel News
Vercel News
Recent Announcements
Recent Announcements
雷峰网
雷峰网
大猫的无限游戏
大猫的无限游戏
小众软件
小众软件
Google DeepMind News
Google DeepMind News

博客园 - 盈盈的工作小纸条

如何清除svn的账号缓存信息(solaris) EMMA 覆盖率工具 强大的ldd 如何对字典中的元素进行排序 Robotium 数据驱动测试框架 (原创)学习NotesList(Robotium自带的例子) (原创)初试Robotium (原创)LoadRunner 中 调用dll Apache+Mysql+PHP 套件 [转]国外人气最旺的软件测试网站 P6Spy & Irontrack SQL 简单使用 sysbench介绍 Sysbench 安装 代码覆盖率测试 批量修改文件内容 Gnuplot--linux下的画图工具 - 盈盈的工作小纸条 - 博客园 SMTP协议简介 shell 命令 perl:日期转换(date->unixtime) - 盈盈的工作小纸条 - 博客园
在solaris上安装iperf
盈盈的工作小纸条 · 2012-08-15 · via 博客园 - 盈盈的工作小纸条

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