SHLIB_PATH or LD_LIBRARY_PATH

hi
Im using HP-UX 11i,PARISC .... Where do i find SHLIB_PATH or LD_LIBRARY_PATH ,
i couldnt find in env, listing...... Moreover im trying to execute file its throwing me error

usr/lib/dld.sl: Can't find path for shared library: libgcc_s.sl
/usr/lib/dld.sl: No such file or directory
(coredump)

pls clarify

On HPUX U won't be by default able to view SHLIB_PATH var. ByDefault `ld` which uses 'usr/lib/dld.sl' lib file searches thru /lib:/usr/lib:/usr/share/lib dirs. That means /lib:/usr/lib:/usr/share/lib is ur SHLIB_PATH variable. Now that `ld` (library loader) is searching for 'libgcc_s.sl' library file which probably is not in the mentioned path.
Now tell me what executebles or shell scripts are u trying to execute which are throwing this error. If it's some application then u have to find the location of library's in that application dir. For e.g. INSTALLDIR/lib.
Post ur reply.

Hi

Im trying to install( locally build and install) berkely db on HP-UX11 ....Installation is perfect( im able to find executables) ...During installation i hve mentioned --prefix=/opt/dev ( im made all the files to be in this path)

i suppose now the loader would be searching in above mentioned path
how can i make the loader point /opt/dev/

/usr/lib/dld.sl: can't finf for shared library: libpthread_tr.1
/usr/lib/dld.sl:No such file or directory
Abort(core dumped)

i got the error error.......... according to u the file missing is libpthread.tr.1

BR
vasanth

Export SHLIB_PATH to point to /opt/dev.

SHLIB_PATH=$SHLIB_PATH:/opt/dev/ ;
export SHLIB_PATH

After expoting this variable, run the script whatever you want to.

-simhe02.