-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Description
I recently compiled and installed iperf 3.20 from source on both Ubuntu 24.04.3 LTS (Desktop) and Ubuntu Server 24.04.3 LTS. I followed the standard procedure as specified in the INSTALL file:
./configure
make
make check
sudo make install
Although the build and installation processes completed without any errors, attempting to run iperf3 -v resulted in the following dynamic linker error (on both Ubuntu Desktop and Ubuntu Server):
iperf3: error while loading shared libraries: libiperf.so.0: cannot open shared object file: No such file or directory
After several hours attempting to figure out the root cause, I consulted Google Gemini, which suggested running the sudo ldconfig command to force the system to scan the library directories (including /usr/local/lib) and update the link database, which worked immediately.
It is worth noting that rebooting Ubuntu did not solve the error. The only effective solution was to manually execute sudo ldconfig.
To improve the user experience and prevent this common pitfall, it would be beneficial if the make install process automatically issued the ldconfig command after the installation is complete.