All of you having Linux, might have gone through this situation at least once, if you are a Linux player who loves to get hands dirty by installing applications from tarballs and sources.
Any how, this is a very common issue in Linux, happened, whenever try to run an application which has a dependency, which that lib file version might be different from the dependency by the application. There is a simple hack around to fix this issue. as follow..
say I got this error message on terminal when I try to run the application..
Error while loading shared libraries: libXXX.so.X.X.X: cannot open shared object file: No such file or directory
now, I will try to locate this concerned Lib in my system by firing following command
[jeevanism@localhost# ]locate libXXX.so.X.X.X
It will show me where these libs are located and what versions they are, most of the time they will be either in
/usr/lib
/lib
Once you found this newer version of the libs you need, you will have to create symlink to those by following command
[jeevanism@localhost# ]/usr/lib/ -> ln -s libXXX.so.Y.Y.Y libXXX.so.X.X.X [jeevanism@localhost# ]/lib/ -> ln -s libXXX.so.Y.Y.Y libXXX.so.X.X.X
Voila… thats done… you can re-run the application which will satisfy all dependencies..
NOTE:- X, Y - denotes Version Number