Debian 编译安装 iperf3

测试时间:2015年9月1日,9点36 AM
测试条件:Debian6 X64
测试结果:安装正常
 

root@debian:~# cat /etc/debian_version  6.0.10 
root@debian:/home# wget http://fossies.org/linux/privat/iperf-3.0.11.tar.gz
root@debian:/home# tar xf iperf-3.0.11.tar.gz  
root@debian:/home# cd iperf-3.0.11 
root@debian:/home/iperf-3.0.11# ./configure


 
提示:configure: error: no acceptable C compiler found in $PATH
解决:root@debian:/home/iperf-3.0.11# apt-get install -y gcc
 

root@debian:/home/iperf-3.0.11# ./configure 
root@debian:/home/iperf-3.0.11# echo $? 
0

 
root@debian:/home/iperf-3.0.11# make && make install
提示:-bash: make: command not found
解决:root@debian:/home/iperf-3.0.11# apt-get install -y make
 
 

root@debian:/home/iperf-3.0.11# make && make install 
root@debian:/home/iperf-3.0.11# echo $? 
0

root@debian:/home/iperf-3.0.11# iperf3 -s
提示:iperf3: error while loading shared libraries: libiperf.so.0: cannot open shared object file: No such file or directory
解决root@debian:/home/iperf-3.0.11# apt-get install lib32z1
root@debian:/home/iperf-3.0.11# echo $?
0
 
root@debian:/home/iperf-3.0.11# iperf3 -s
-----------------------------------------------------------
Server listening on 5201
iperf3运行正常。
 

如果apt-get install lib32z1 执行不成功,请检查使用的源
查看系统使用的源
root@debian:/home/iperf-3.0.11# cat /etc/apt/sources.list
使用中科大的源.

本文出自 “魂斗罗” 博客,谢绝转载!

你可能感兴趣的:(编译安装,iperf3)