Labels

Monday, 28 March 2011

Troubleshooting Library failures

It has been a frequent problem that some binaries which otherwise work fine, suddenly start failing with errors thrown through ld.so.1 or something similar. If it is not a major bug , then it is usually a problem with the LD_LIBRARY_PATH. There can be various ways to troubleshoot it, I found this approach , hitting straight at the heart of the problem. eg , if you are having problem with ssh failing with library errors ldd /usr/bin/ssh which should throw an output of the libraries used by a binary. That way you can ascertain, which libraries are used , and from where they are getting picked. Then if the directory path of any particular library is incorrect, you can change the path for LD_LIBRARY_PATH to get the desired result. run the ldd command again, and you should see the desired result being reflected.

No comments:

Post a Comment