GDB – 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: 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 “” in “/usr/lib ” of my system . But no “” there .

Then I did simple tricks with ln command : ln -s /usr/lib/ /usr/lib/

wow … now its like Makhan[ butter].. Problem is solved .. I hope this will help you too…


Simple , Artistic , Meaningful

Tagged with: , , , , , , , , , , , , , , , , , ,
Posted in computer, debug, install, Passion, Science, troubleshoot, Uncategorized
2 comments on “GDB – 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: Logo

You are commenting using your 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: