Showing results for 
Search instead for 
Did you mean: 

/usr/lib/ No such file or directory

Dan Copeland
Regular Advisor

/usr/lib/ 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/ Can't find path for shared library:
/usr/lib/ No such file or directory
I saw that the shared library was actually present and the path was also set properly. Does anybody have any clue as to why this error is coming??
Francois Bariselle_3
Regular Advisor

Re: /usr/lib/ No such file or directory

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

The SHLIB_PATH should be have /usr/lib.

Fais la ...
Jeff Schussele
Honored Contributor

Re: /usr/lib/ No such file or directory

Hi Frank,

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

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

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

Re: /usr/lib/ 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?

Steven E Protter
Owner of ISN Corporation
Shannon Petry
Honored Contributor

Re: /usr/lib/ No such file or directory

The problem as mentioned is not with 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.


First step is to find the lib midsing.
% find / -name -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 lives. If the variables are set add the directory to them.

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

Microsoft. When do you want a virus today?
Trusted Contributor

Re: /usr/lib/ No such file or directory

Hi, Frank!
The message says, that the library 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
Frequent Advisor

Re: /usr/lib/ 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!!!