ldconfig: configure dynamic linker run-time binds.
For example, after I compile boost (some libraries of boost need to be compiled to generate dynamic or static libraries, such as Python, Regex, etc., see Boost documentation for details), I need to add the compiled library path, such as /usr/local/lib to run When the dynamic binding search path, the steps are as follows:
Under Ubuntu, create a new configuration file in the /etc/ld.so.conf.d directory, such as boost_lib.conf, and edit its content as:
/usr/local/lib
and then run,
$ sudo ldconfig
Then the application can correctly find the boost related link files.
over.