cancel
Showing results for 
Search instead for 
Did you mean: 

SHLIB_PATH

 
Waqar Razi
Regular Advisor

SHLIB_PATH

Can some one please tell me what the SHLIB_PATH
variable is? Why do we use this in .profile of every user?
3 REPLIES
Michael Mike Reaser
Valued Contributor

Re: SHLIB_PATH

Just as the PATH variable provides a list of directories to the shell for the locations of your commands and executables, SHLIB_PATH provides a list of directories to the dynamic loader dld.sl for the locations of all SHared LIBraries needed by any program you run.
There's no place like 127.0.0.1

HP-Server-Literate since 1979
V. Nyga
Honored Contributor

Re: SHLIB_PATH

Hi,

>Why do we use this in .profile of every user?

Well, you can also use /etc/SHLIB_PATH to define it for all users of one ws, or you enlarge the variable in the script where you start an application who needs particular additional SHLIBs.

HTH
Volkmar

P.S. try to increase your assignment rate, you're far below 50%:
http://forums11.itrc.hp.com/service/forums/pageList.do?userId=WW103517&listType=unassigned
*** Say 'Thanks' with Kudos ***

Re: SHLIB_PATH

>Why do we use this in .profile of every user?

If they all run the same application, they may need it. Volkmar mentioned you can also use /etc/SHLIB_PATH and the following in your .profile:
SHLIB_PATH=$SHLIB_PATH:$(< /etc/SHLIB_PATH)

Or you can centralize them in /etc/profile.