Operating System - HP-UX
1827136 Members
2983 Online
109716 Solutions
New Discussion

Can't find path for shared library

 
SOLVED
Go to solution
Neil Wilson_2
Valued Contributor

Can't find path for shared library

Get the following on HPUX 11.11 server

# /appl/maestro/StartUp
/usr/lib/dld.sl: Can't find path for shared library: libatrc.sl
/usr/lib/dld.sl: No such file or directory
/appl/maestro/StartUp[45]: 26416 Abort
/appl/maestro/StartUp[47]: /bin/mecho: not found.
/appl/maestro/StartUp[53]: /bin/mecho: not found.
TWS for UNIX/STARTUP 8.1

/usr/lib/dld.sl: Can't find path for shared library: libatrc.sl
/usr/lib/dld.sl: No such file or directory
/appl/maestro/StartUp[77]: 26420 Abort

The file and the directory exists as follows:
# file libatrc.sl
libatrc.sl: PA-RISC1.1 shared library -not stripped
# ll libatrc.sl
-rwxr-xr-x 1 root sys 53399 Oct 19 12:26 libatrc.sl

# ll /usr/lib/dld.sl
-r-xr-xr-x 1 bin bin 188416 Jul 17 2002 /usr/lib/dld.sl
# file /usr/lib/dld.sl
/usr/lib/dld.sl: s800 shared library -not stripped
6 REPLIES 6
Steven E. Protter
Exalted Contributor
Solution

Re: Can't find path for shared library

SHLIB_PATH=/usr/lib
export SHLIB_PATH

try again.

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
Elmar P. Kolkman
Honored Contributor

Re: Can't find path for shared library

Nice. Same problem as I had.

Checkout: http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=819220

Probably you installed a patch like that one. If not, the SHLIB_PATH solution might work.
If not, do:
# chatr /appl/maestro/bin/conman
Look at the 'embedded path' entry. Create the path, and place the libatrc.sl, which is in the trace directory of your Maestro installation, in there. Then try again and it should work.
We did it by using a symbolic link in /usr named Tivoli, since in our case the needed path was /usr/Tivoli/TWS/TKG/3.1.5/lib. But we are using version 8.2 of TWS, not 8.1.

Good luck,

Elmar
Every problem has at least one solution. Only some solutions are harder to find.
Elmar P. Kolkman
Honored Contributor

Re: Can't find path for shared library

Oh, and if you want to try the SHLIB_PATH solution, it needs to contain the trace directory in your maestro installation, because that's where the sharedlib resides, not /usr/lib.
Every problem has at least one solution. Only some solutions are harder to find.
T G Manikandan
Honored Contributor

Re: Can't find path for shared library

Add the path of the library : libatrc.sl to the SHLIB_PATH

SHLIB_PATH=$SHLIBPATH:
export SHLIB_PATH

Stephen Keane
Honored Contributor

Re: Can't find path for shared library

If the chatr on your executable doesn't have a line saying

SHLIB_PATH enabled

then the SHLIB_PATH is not going to be used. You will have to run

# chatr +s enable

where is the name of the executable. Then SHLIB_PATH will be used.
Neil Wilson_2
Valued Contributor

Re: Can't find path for shared library

exported SH_LIB and reran fine
also found embedded path missing and recreated /usr/Tivoli/TWS/TKG/3.1.5/lib then copied libatrc.sl file into here...

thanks everyone