Why Is Ldconfig Needed?
Ldconfig Creates the Necessary Links and Cache to the Most Recent Shared Libraries Found in the Directories Specified on the Command Line, in the File /Etc/Ld...
ldconfig creates the necessary links and cache to the most recent shared libraries found in the directories specified on the command line, in the file /etc/ld. ... ldconfig checks the header and filenames of the libraries it encounters when determining which versions should have their links updated.
When should I run Ldconfig?
Ldconfig should normally be run by the super-user as it may require write permission on some root owned directories and files. If you use -r option to change the root directory, you don't have to be super-user as long as you have sufficient rights to that directory tree.
What is Ldconfig Ubuntu?
ldconfig is a program that is used to maintain the shared library cache. This cache is typically stored in the file /etc/ld.so.cache and is used by the system to map a shared library name to the location of the corresponding shared library file.