I need to do this:
On linux, we have to find a few dynamic libraries which are not on a standard location. We have to set $LD_LIBRARY_PATH to /path/to/sdk/lib
How can I do that in Ubuntu 10.10?
I need to do this:
On linux, we have to find a few dynamic libraries which are not on a standard location. We have to set $LD_LIBRARY_PATH to /path/to/sdk/lib
How can I do that in Ubuntu 10.10?
To define this variable, simply use (on the shell prompt):
To make it permanent, you can edit the ldconfig files. First, create a new file such as:
Second, add the path in the created file
Finally, run ldconfig to update the cache.
In bash, assign it before the executable to be run.
You have to run the
to export the path to the compilers.
Default path is in
usr/bin
Copy and paste the path into the
your_lib.conf
file in the location/etc/ld.so.conf.d
then save and exit.Run this to confirm the changes in the files which added the paths