Quote:
Originally Posted by alexander_bosakov
If you want the library to be system-wide accessible, put it in some standart location, like /usr/lib, or /usr/local/lib and then run as root "ldconfig". It will create the necessary symlink and update the linker cache. See it's manpage for more details.
|
Actually this is the standard way but if i don't have permission as a root then i can't edit this regular files like /usr/lib or /usr/local/lib or /lib/ then i need to locate my so file in a directory accessible to me.
Now i want to know that if i create this new so library in a local directory and then give the path name after 'ldconfig "PATH"' so what is the use of LD_LIBRARY_PATH. Is it to set the path for compiler to recognize the actual path and if once for a so library we set this will it be same for the other so Libraries made after setting this env variable.