Operating System - HP-UX
1846054 Members
2291 Online
110253 Solutions
New Discussion

Erase path from SHLIB_PATH variable

 
SOLVED
Go to solution
NMory
Respected Contributor

Erase path from SHLIB_PATH variable

Hi guys:

I have the following when I do a
#echo $SHLIB_PATH

/opt/app/oracle/product/9.2.0/lib32:
/opt/app/oracle/product/9.2.0/lib:
/opt/bv1to1/xml/lib:
/opt/bv1to1/verity/_hpux11/bin:
/opt/bv1to1/jre/lib/PA_RISC/native_threads:
/opt/vertex316/lib:
/usr/lib:
/lib:
/opt/app/oracle/product/9.2.0/obackup/lib::
/opt/app/oracle/product/9.2.0/lib32/libclntsh.sl:
/opt/app/oracle/product/9.2.0/lib32/libclntsh.sl:
/opt/app/oracle/product/9.2.0/lib32/libclntsh.sl:
/opt/app/oracle/product/9.2.0/lib32/libclntsh.sl:
/usr/lib

I need to erase the last /usr/lib, three of the repeated /opt/app/oracle/product/9.2.0/lib32/libclntsh.sl and clear the lost path after /opt/app/oracle/product/9.2.0/obackup/lib


Thanks,

NM
4 REPLIES 4
IT_2007
Honored Contributor

Re: Erase path from SHLIB_PATH variable

check /etc/profile and /root/.profile
James R. Ferguson
Acclaimed Contributor
Solution

Re: Erase path from SHLIB_PATH variable

Hi:

So...examine and edit as needed '/etc/SHLIB_PATH and/or see if your '.profile' defines and exports the offending entries.

Regards!

...JRF...
Pete Randall
Outstanding Contributor

Re: Erase path from SHLIB_PATH variable

Simply re-export it the way you want it:

export SHLIB_PATH=/opt/app/oracle/product/9.2.0/lib32:
/opt/app/oracle/product/9.2.0/lib:
/opt/bv1to1/xml/lib:
/opt/bv1to1/verity/_hpux11/bin:
/opt/bv1to1/jre/lib/PA_RISC/native_threads:
/opt/vertex316/lib:
/usr/lib:
/lib:
/opt/app/oracle/product/9.2.0/obackup/lib::
/opt/app/oracle/product/9.2.0/lib32/libclntsh.sl:


Pete

Pete
NMory
Respected Contributor

Re: Erase path from SHLIB_PATH variable

Thanks guys...