下载安装包地址:http://xiazai.zol.com.cn/detail/33/329375.shtml
安装过程:

tar -xvf iperf.tar.gz
cd iperf
./configure
make
make install 



如果报错configure: error: cannot guess build type; you must specify one,就把./configure改为./configure --build=arm-linux

如果报错redefinition of ‘struct std::__is_integer<int>就用记事本编辑文件configure,ctrl+f全局搜索define bool int,然后注释掉下面的部分:

#if test "$ac_cv_sizeof_bool" = 0 ; then
#  cat >>confdefs.h <<\_ACEOF
#define bool int
#_ACEOF

#fi