install iperf3 ubuntu 14.04
Asked Answered
J

8

13

I hope to find an answer rather quickly about this issue. I am currently trying measure RTT from an iOS device to my ubuntu desktop and server. However, I'm seeing that the iperf version on iOS is iperf3 (which is probably the reason why I keep getting an error message every time I try to perform a simple test). I am able to ping from the iOS device to my hosts.

So right now,I am trying to install iperf3 into my Ubuntu 14.04 desktop and server (with the notion that having the same versions will resolve the problem), but keep getting an error that iperf is not installed.

When I do apt-get iperf, it installs. But when I go to check the version (iperf -vl), I get version 2.0.5-3.

Any help I get is greatly appreciated.

Justify answered 19/2, 2015 at 4:0 Comment(1)
iperf is iperf version 2.0; the binary for iperf 3.x is called iperf3Oraliaoralie
V
25

Apparently someone named Patrick Domack built a version for Ubuntu Trusty (14.04). Edit: also works on 15.10.

Copy-paste this command and press ENTER:

sudo add-apt-repository "ppa:patrickdk/general-lucid"

Resynchronize the package index files:

sudo apt-get update

Install iperf:

sudo apt-get install iperf3

Invoke iperf version 3:

iperf3 -c iperf.scottlinux.com
Voyageur answered 26/2, 2015 at 19:19 Comment(2)
Thank you so much! that saved me a lot of trouble.Justify
If you get the error The program add-apt-repository is currently not installed, follow this answer: askubuntu.com/a/38035/301615Girlhood
W
9
apt-get install git-core  //install git tool

apt-get install make    //install make tool, to make iperf3

git clone https://github.com/esnet/iperf   //clone iperf3 source code

cd iPerf  //go to the iperf3 source code folder, and compile it

./configure

make

make install
Wot answered 30/10, 2015 at 0:10 Comment(1)
maybe you need an additional apt-get install gcc if you have no compiler at allHowell
J
7

As of Vivid (15.04), iperf3 is now available in the Ubuntu universe repository. It is also available with backports on Trusty (14.04). To get it:

sudo apt install iperf3

Here's a link to the official package description on the Ubuntu website.

Journeyman answered 15/6, 2016 at 20:6 Comment(0)
H
1

Using this one-liner: will install required build tools, clone iperf3, build and install it:

apt-get install git-core build-essential && git clone https://github.com/esnet/iperf && cd iperf && ./configure && make && make install
Hamitic answered 24/3, 2017 at 14:36 Comment(1)
not work for me. I got "iperf3: error while loading shared libraries: libiperf.so.0: cannot open shared object file: No such file or directory"Nasopharynx
W
1

If you want to install the latest version of iperf3 on your Ubuntu/Debian distro without compiling it from sources and without adding any repository (in ppa:patrickdk iperf3 version is 3.0.7) you can use instruction from site.

sudo apt-get remove iperf3 libiperf0
wget https://iperf.fr/download/ubuntu/libiperf0_3.1.3-1_amd64.deb
wget https://iperf.fr/download/ubuntu/iperf3_3.1.3-1_amd64.deb
sudo dpkg -i libiperf0_3.1.3-1_amd64.deb iperf3_3.1.3-1_amd64.deb
rm libiperf0_3.1.3-1_amd64.deb iperf3_3.1.3-1_amd64.deb

I checked later and find that Ubuntu add that package to their official repo and it will be more preferable way to install in from them. I left that answer for people who need to install iperf3 on Ubuntu 12 and earlier versions.

Wardlaw answered 19/4, 2019 at 6:49 Comment(0)
E
1

for proxy to be: ip: 172.16.2.30 port: 8080

pip --proxy=https://172.16.2.30:8080 install iperf3

non-proxy:

pip install iperf3

Elapse answered 6/6, 2019 at 6:42 Comment(0)
N
0

apt-get one line:

add-apt-repository -y "ppa:patrickdk/general-lucid" && apt-get update && apt-get install -y iperf3

I use -y to make the script automatic run this command.

Nasopharynx answered 28/12, 2017 at 5:5 Comment(0)
R
0

If you are installing iperf3 onto a stock AWS EC2 Ubuntu image, you may also have to install a couple more packages to get it to run. So in total the process looks like this:

  1. sudo apt-get update
  2. sudo apt-get install make
  3. sudo apt-get install gcc --fix-missing
  4. sudo apt-get install lib32z1
  5. git clone https://github.com/esnet/iperf
  6. cd iperf
  7. ./configure
  8. make
  9. sudo make install
  10. sudo ldconfig
Recollected answered 25/12, 2018 at 2:15 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.