How Do I Set the LD_LIBRARYPATH Globally in Solaris
So are using Solaris and you just installed an Oracle client that you want to be available to a web CGI application and you don't remember how to setup the local environment variable LD_LIBRARY_PATH for the particular web server you are using. What do you do?
Solution:
crle command by itself will list your current libary search paths. I recommend you do this first and save it to a text file.
As super user run: crle -u -l /usr/mylibdir
This will statically update the library path for the entire machine so be careful.
Using crle without the -u option will completely replace your search path - this is dangerous if you don't know what you are doing.