GDB – libexpat.so.1 not found : solved

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…

Advertisements

Simple , Artistic , Meaningful

Tagged with: , , , , , , , , , , , , , , , , , ,
Posted in computer, debug, install, Passion, Science, troubleshoot, Uncategorized
2 comments on “GDB – libexpat.so.1 not found : solved
  1. dbus segfault says:

    thanks this works for mr too

  2. Stephen says:

    Hello, This will also work on FreeBSD 10,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: