Multiple choice technology web technology

You have just installed the new program foobar manually. This program uses shared libraries, which are installed to /usr/local/foobar/lib. What is necessary to do after the installation so that the libraries can be used?

  1. restart your computer

  2. run ldconfig

  3. edit /etc/ld.so.conf to add the new library path and then run ldconfig

  4. edit /etc/ld.so.conf to add the new library path and then run ld.so

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

On Linux systems, the dynamic linker looks at a cache (/etc/ld.so.cache) to find shared libraries. To add a non-standard path, you must add the directory to /etc/ld.so.conf (or a file in /etc/ld.so.conf.d/) and then run 'ldconfig' to rebuild the cache so the system recognizes the new libraries.