Get the App
SLTechnology News&Howtos  ›  Network Security  › 

The library path of the exported file

Shulou Source: shulou.com Published: 2022-06-01 05:47:24 10月04日 Update

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

Tags: File platform path normal same once and for all binary local local method end machine permission computer compilation Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MySQL Microsoft Apple MariaDB NVidia