The main administrative task for shared libraries is to tell programs how to find libraries. It can be done by setting a library path. You can set it systemwide or temporarily.
To change or add path systemwide, you need to add path or conf file, containing path, to /etc/ld.so.conf:/path include /etc/ld.so.conf.d/*.conf
For changes take effect you need to launch ldconfig
/lib and /usr/lib are always in library path, even if they aren't listed in /etc/ld.so.conf
To add or change path temporarily you need to set the LD_LIBRARY_PATH environment variable:
$ export LD_LIBRARY_PATH=/usr/local/testlib:/opt/newlib
You can use ldd command to see what libraries the program links to.
Subscribe to:
Post Comments (Atom)
Ping does not work
Today I would like to discuss a banal situation: host A is directly connected to host B, ping from host A to host B does not work. What are...
-
In this post I am going to describe how I was configuring auditd service in Ubuntu Linux 12.04 server and the challenges I faced during thi...
-
Let us imagine you need to upload large files into Mantis. For instance we will set a 40Mb limit. First of all you need to change configur...
-
If it is required to check what encryption and authentication is supported by IPSec service, ike-scan utility can be used. First we can laun...
No comments:
Post a Comment