Operating System - HP-UX
1753291 Members
5502 Online
108792 Solutions
New Discussion юеВ

/usr/lib/dld.sl: No such file or directory

 
Dan Copeland
Regular Advisor

/usr/lib/dld.sl: No such file or directory

When one of our application guys tried to run a command called drstrt it is giving the following errors
/usr/lib/dld.sl: Can't find path for shared library: libsrs_sys7.sl
/usr/lib/dld.sl: No such file or directory
I saw that the shared library dld.sl was actually present and the path was also set properly. Does anybody have any clue as to why this error is coming??
6 REPLIES 6
Francois Bariselle_3
Regular Advisor

Re: /usr/lib/dld.sl: No such file or directory

In your .profile in home directory, check the SHLIB_PATH.

The SHLIB_PATH should be have /usr/lib.

Frank.
Fais la ...
Jeff Schussele
Honored Contributor

Re: /usr/lib/dld.sl: No such file or directory

Hi Frank,

The error is coming *from* dld.sl & it's complaining that it can't find the
libsrs_sys7.sl lib file.

So you need to:
A) Determine whether you have the libsrs_sys7.sl file on your system
B) If so, insure that the SHLIB_PATH variable points through it's location.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Steven E. Protter
Exalted Contributor

Re: /usr/lib/dld.sl: No such file or directory

After fixing SSHLIB_PATH you might need to relink your database and application.

You are current on patches, especially libc and compiler ones right?

P
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
Shannon Petry
Honored Contributor

Re: /usr/lib/dld.sl: No such file or directory

The problem as mentioned is not with dld.sl. dld.sl is the main lib loader and will always be the main voice on missing/lost libraries.

Depending on how the app was written, it hopefully uses one of two library environment variables to find extras.

LD_LIBRARY_PATH
or
SHLIB_PATH


First step is to find the lib midsing.
% find / -name libsrs_sys7.sl -print

If you can find it, the directory it lives in needs to go into the system variables for libs.

If the libs are currently unset (normal behavior) then just set the variable to the directory where the libsrs_sys7.sl lives. If the variables are set add the directory to them.

If you dont have libsrs_sys7.sl then your in bad shape. You need to get the app re-installed that needs that lib.

Regards,
Shannon
Microsoft. When do you want a virus today?
Stanimir
Trusted Contributor

Re: /usr/lib/dld.sl: No such file or directory

Hi, Frank!
The message says, that the library libsrs_sys7.sl could not be found in any of search paths, given to the dyn.loader. To fix
the problem make sure the library is in your
system, try:

#chatr yourprogram

Then look at it and localize your library and try to remark path to it. At runtime the library is eighter expected in one of the embedded paths or must be assigned in SHLIB_PATH - environt variable.
Regards, Stan
steve_586
Frequent Advisor

Re: /usr/lib/dld.sl: No such file or directory

Hi Guys,

Just thought i would let you know i had the problem along the same lines and the above responses sorted it. Well done! Pity you were not allocated any points though!!!