Gdb Error While Loading Shared Libraries Libexpat.so.0
2 Comments 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… Like this:Like Loading... Related About samritmaity Simple , Artistic , Meaningful ‹ Installing QT : GLIBCXX_3.4.9 not foundsolved JASMIN REVOLUTION aginst CORRUPT POLITICIANS - LOKPAL BILL india2011 › Tagged with: can, Cent OS 5.5, CentOS, crash, ddd, dependancy, expat, gdb, install, libexpat.so, libexpat.so.1, library, linux, not, open, problem, resolved, shared, solved Posted in computer, debug, install, Passion, Science, troubleshoot, Uncategorized 2 comments on “GDB - libexpat.so.1 not found :solved” dbus segfault says: February 19, 2013 at 9:11 pm thanks this works for mr too Reply Stephen says: April 7, 2015 at 8:17 pm Hello, This will also work on FreeBSD 10, Reply Leave a Reply Cancel reply Enter your comment here... Fill in your details below or click an icon to log in: Email (required) (Address never made public) Name (required) Website You are commenting using your WordPress.com account. (LogOut/Change) You are commenting using your Twitter account. (LogOut/Change) You are commenting using your Facebook account. (LogOut/Chan
libexpat.so.0: cannot open shared object file: No such file ordirectory EDIT!!! The right way to fix this (and similar problems) is: emerge gentoolkit revdep-rebuild -X It appears that the libexpat problem was caused by Gentoo developers releasing too many updates without cross-checking them. I got this error in Gentoo, after doing an "emerge world". I'm using an AMD64 Turion laptop. /usr/bin/dbus-daemon: error while loading shared libraries: libexpat.so.0: cannot open shared object file: No such file or directory dbus didn't start, so hald couldn't start, and finally kpowersave wasn't able to read the battery state. You'll agree with me that it is https://samritmaity.wordpress.com/2011/03/08/gdb-libexpat-so-1-not-found-solved/ pretty annoying if you have a 3h25m battery life laptop. Here's how I solved the problem: 1) First of all, I found the path to libexpat.so: it's /usr/lib/libexpat.so root@smokey# ls -l /usr/lib/libexpat* -rw-r--r-- 1 root root 250620 Oct 29 14:17 /usr/lib/libexpat.a -rw-r--r-- 1 root root 795 Oct 29 14:16 /usr/lib/libexpat.la lrwxrwxrwx 1 root root 17 Oct 29 14:17 /usr/lib/libexpat.so -> libexpat.so.1.5.2 lrwxrwxrwx 1 root root 17 Oct 29 https://sevencapitalsins.wordpress.com/2007/11/01/error-while-loading-shared-libraries-libexpatso0-cannot-open-shared-object-file-no-such-file-or-directory/ 14:17 /usr/lib/libexpat.so.1 -> libexpat.so.1.5.2 -rwxr-xr-x 1 root root 141456 Oct 29 14:17 /usr/lib/libexpat.so.1.5.2 2) As you can see, there's no such thing as a libexpat.so.0 in /usr/lib. But there is a libexpat.so.1 referenced by libexpat.so itself. So I made a symbolic link named libexpat.so.0 pointing to libexpat.so: root@smokey# ln -s /usr/lib/libexpat.so /usr/lib/libexpat.so.0 Be warned: this may not be the right thing to do. I should have checked the configuration file of the dbus daemon, and changed it to reference libexpat.so instead of libexpat.so.0. But as you may guess i was pissed enough to dig deeply into crappy conf files. And what if there was another app requiring libexpat.so.0? You can never guess when a developer/mantainer will fail you. 3) Finally, fire up those lazy dbus and hald daemons: root@smokey# /etc/init.d/dbus start * Starting D-BUS system messagebus ... root@smokey# hald start Tch… That was easy, man. And my battery is the best, you'll never beat me in powersaving. Mi piace:Mi piace Caricamento... Articoli collegati Contrassegnato da tag all that sort of things man, crappy code, dbus, Gentoo, hald, kpowersave, libexpat.so.0, stupid mantainer 22 thoughts on “error while loading shared libraries: libexpat.so.0: cannot open shared object file: No such file ordirectory” Fred
Tutorials/Articles Search HCL Search Reviews Search ISOs Go to Page... LinuxQuestions.org > Forums > Linux Forums > Linux - General error while loading shared libraries: libexpat.so.0: cannot open shared http://www.linuxquestions.org/questions/linux-general-1/error-while-loading-shared-libraries-libexpat-so-0-cannot-open-shared-object-file-4175471858/ object file: User Name Remember Me? Password Linux - General This Linux forum is for general Linux questions and discussion. If it is Linux Related and doesn't seem to fit in any other forum then this is the place. Notices Welcome to LinuxQuestions.org, a friendly and active Linux Community. You are currently viewing LQ as a guest. By joining our community you will have the ability to gdb error post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today! Note that registered members see fewer ads, and ContentLink is completely disabled once you log in. Are you new to LinuxQuestions.org? Visit the following links: Site Howto | Site FAQ | Sitemap | Register Now If you have any gdb error while problems with the registration process or your account login, please contact us. If you need to reset your password, click here. Having a problem logging in? Please visit this page to clear all LQ-related cookies. Introduction to Linux - A Hands on Guide This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter. For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own. Click Here to receive this Complete Guide absolutely free. Search this Thread 08-02-2013, 08:42 AM #1 Naimbora LQ Newbie Registered: Feb 2013 Posts: 3 Rep: error while loading shared libraries: libexpat.so.0: cannot open shared object file: Hi all, I was searching for a solution to the following proble