Here again another post about CentOS 5.5. Today morning while I was trying to start gdb with default compiler gcc 4.1.2 which comes with CentOS 5.5 – it crashed with following descriptive error :
gdb: error while loading shared libraries: libexpat.so.1: cannot open shared object file: No such file or directory
After a 10 min search I found expat rpm for Cent OS 5.5 from
I downloaded and try to install it with “rpm -ivh “ command but it failed because of expact-devel dependancy.
Then I used command : yum install expat-1.95.8-8.3.el5_5.3.i386.rpm
It went fine. But when I tried to start gdb the same problem persists. I found “libexpat.so” in “/usr/lib ” of my system . But no “libexpat.so.1” there .
Then I did simple tricks with ln command : ln -s /usr/lib/libexpat.so /usr/lib/libexpat.so.1
wow … now its like Makhan[ butter].. Problem is solved .. I hope this will help you too…