1834710 Members
2508 Online
110069 Solutions
New Discussion

LD_LIBRARY_PATH

 
SOLVED
Go to solution
Shivkumar
Super Advisor

LD_LIBRARY_PATH

Is LD_LIBRARY_PATH applicable to HPUX ? How to verify or add new path to it ?

Thanks,
Shiv
8 REPLIES 8
Devender Khatana
Honored Contributor
Solution

Re: LD_LIBRARY_PATH

Hi,

What you are trying is perhaps requirement of some application rather than OS.

Usually it is not required for some normal OS user but when the user has to be owner of an application then this variable has to be defined. But again it is specific to application and not OS in my opinion.

HTH,
Devender
Impossible itself mentions "I m possible"
Leif Halvarsson_2
Honored Contributor

Re: LD_LIBRARY_PATH

Hi,
Yes, it is appliciable. It may not have anything direct to do with HP-UX but can be used by different applications (see the installation documentation for the specific product).

To verify:
echo $LD_LIBRARY_PATH

To add:
LD_LIBRARY_PATH=/xxx/yyy/zzz; export LD_LIBRARY_PATH
Steven E. Protter
Exalted Contributor

Re: LD_LIBRARY_PATH

Yes, it can be relavent.

Kind of works like SHLIB_PATH.

Some applications/compilers want LD_LIBRARY_PATH set instead of or alongside SHLIB_PATH.

Oracle uses it on Linux.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Eric Antunes
Honored Contributor

Re: LD_LIBRARY_PATH

Hi Shiv,

It is applicable but I think it only will be used with 64 bits binaries.

Use chatr to check if this environment variable is used by oracle (if this is your case):

$cd $ORACLE_HOME/bin
$chatr oracle|more

Best Regards,

Eric Antunes
Each and every day is a good day to learn.
Raj D.
Honored Contributor

Re: LD_LIBRARY_PATH

Hi Shiv,

Check for the oracle's home's .profile file.

# cat /etc/passwd | grep -i oracle
# cd ~oracle
# cat .profile | grep -i ld

You will get something like that:

# cat .profile | grep -i ld
export LD_LIBRARY_PATH=$ORACLE_HOME/lib



Cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
A. Clay Stephenson
Acclaimed Contributor

Re: LD_LIBRARY_PATH

A very good explanation of LD_LIBRARY_PATH and its cousin, SHLIB_PATH, is given in the dld.sl man pages. Man 5 dld.sl. Generally, LD_LIBRARY_PATH is searched before SHLIB_PATH. There is another related environment variable that you should know about as well -- LD_PRELOAD. All of these are in the dld.sl man pages. You should also man ld as well.
If it ain't broke, I can fix that.
Raj D.
Honored Contributor

Re: LD_LIBRARY_PATH

Hi Shiv ,

The LD_LIBRARY_PATH is usually configured for oracle is $ORACLE_HOME/lib ,

Check for the $ORACLE_HOME , in the .profile of ~oracle , and you will come to know about the LD_LIBRARY_PATH ,ie
/oracle/product/9.2.0.4/lib

For more Details :
Check :

HP-UX Linker and Libraries User's Guide .

Hth,

Raj.





" If u think u can , If u think u cannot , - You are always Right . "
Raj D.
Honored Contributor

Re: LD_LIBRARY_PATH

Hi Shiv,

Here it is :

http://docs.hp.com/en/B2355-90655/B2355-90655.pdf

Enjoy,
Cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "