Library loading path

Information about the loading path of Ubuntu libraries.

Load path of library of package installed by apt

The library of the package installed by apt is in "/ usr / lib / x86_64-linux-gnu".

/ usr / lib / x86_64-linux-gnu

Check the library loading path

Look in "/etc/ld.so.conf" to check the loading path of the library.

cat /etc/ld.so.conf

Looking at the contents, it is further included.

include ld.so.conf.d/*.conf

So, let's output all the read files with cat command.

$cat /etc/ld.so.conf.d/*.conf

# libc default configuration
/ usr / local / lib
#Multiarch support
/ usr / local / lib / x86_64-linux-gnu
/ lib / x86_64-linux-gnu
/ usr / lib / x86_64-linux-gnu

Associated Information