Skip to content

Issue ldconfig command after installation #1995

@parmi93

Description

@parmi93

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions