The library path of the exported file
After compiling on the same platform, package and copy the binaries to other machines on the same platform.
Iperf3 specified an installation file path and copied it to a computer with normal permissions.
Haha@us-***:~/iperf$ export LD_LIBRARY_PATH=/home//iperf/lib
Haha@us-***:~/iperf$ cd bin
Haha@us-***:~/iperf/bin$ ls
Iperf3
Haha@us-***:~/iperf/bin$. / iperf3-s
Server listening on 5201
The method once and for all:
Haha@us-***:~/iperf/bin$ cd
Haha@us-***:~$ vim .bashrc
Add the following line at the end of the file
Export LD_LIBRARY_PATH=/home//iperf/lib/
Alias ll= "ls-lha"
. / iperf/bin/iperf3-s