Linux.com

Author Message
Joined: Oct 27, 2007
Posts: 4
Other Topics
Posted Oct 28, 2007 at 9:29:16 PM
Subject: Huge Problem: "cannot open shared object file: No such file"

I have compiled a C program and try to run the executable, but one of the share library causes the following:

[sunny@uoa131251 ~]$ ./burst11
./burst11: error while loading shared libraries: libFrame.so: cannot open shared object file: No such file or directory
[sunny@uoa131251 ~]$ ldd burst11
linux-gate.so.1 => (0x007e3000)
libfftw3.so.3 => /usr/lib/libfftw3.so.3 (0x00bd2000)
libm.so.6 => /lib/libm.so.6 (0x0090f000)
libFrame.so => not found
libc.so.6 => /lib/libc.so.6 (0x00110000)
libpthread.so.0 => /lib/libpthread.so.0 (0x00956000)
/lib/ld-linux.so.2 (0x0079a000)
[sunny@uoa131251 ~]$

I have carefully looked through countless manual, forums, etc (including an explanation from this site) which says either use a symbolic link as a quick fix to connect the library from its previous location (ie. ln -s "newlocation" "oldlocation"), or to use ldconfig as a permanent fix (ie. put the new address of the .so file in /etc/ld.so.conf/ and then run ldconfig).

However after using the ldconfig to update the location of the .so file, my C program still own't work! As shown above it still doesn't even recognise where my libFrame.so is, and I checked it IS there, and since ldconfig has already updated its location, there is no reason at all why it won't find it!

It had been burning a hole in my brain and I wonder who know how I might be able to fix it. Super thank you to all suggestions.

Sunny

Back to top Profile Email Website
chsethia
Joined Oct 30, 2007
Posts: 1

Other Topics
Posted: Oct 30, 2007 6:23:35 AM
Subject: Huge Problem: "cannot open shared object file: No such file"

Have you tried setting the LD_LIBRARY_PATH variable?

Back to top Profile Email Website
ravindra mudumby
Joined Nov 03, 2007
Posts: 1

Other Topics
Posted: Nov 03, 2007 11:22:08 AM
Subject: Huge Problem: "cannot open shared object file: No such file"

After getting everything compiled and installed (apparently without error), I get the following error running trac-admin, and do not know how to go about fixing it, any pointers greatly appreciated:

Traceback (most recent call last):
File "/usr/bin/trac-admin", line 31, in ?
import sqlite
File "/usr/lib/python2.2/site-packages/sqlite/__init__.py", line 1, in ?
import _sqlite
ImportError: libsqlite.so.0: cannot open shared object file: No such file or directory

I've libsqlite.so.0 exists (it's /usr/local/lib/libsqlite.so.0 )

I've been running Trac under Windows for a few months and found the install quite easy, the Linux install has been much harder...

clearsilver 0.9.10
docutils-snapshot
pysqlite 0.5.1
Red Hat Enterprise Linux ES release 3 (Taroon Update 2)subversion 1.1.0
sqlite 2.8.15
trac 0.7.1

Back to top Profile Email Website
sunny
Joined Oct 27, 2007
Posts: 4

Other Topics
Posted: Nov 12, 2007 1:59:54 AM
Subject: Huge Problem: "cannot open shared object file: No such file"

RE: chsethia

I have checked if I can use LD_LIBRARY_PATH, but I'm not sure what syntax to input, further I thought the correct library path should be already entered in the file in /etc/ld.so.conf/ so I don't see why LD can't recognise it.

Back to top Profile Email Website
djtomcat

Joined Dec 28, 2007
Posts: 2
Location:Germany

Other Topics
Posted: Dec 28, 2007 2:24:13 AM
Subject: Huge Problem: "cannot open shared object file: No such file"

/lib/ld-linux.so.2 --library-path PATH EXECUTABLE

its different to be a dj!

Back to top Profile Email Website MSN
Ted
Joined Jun 24, 2008
Posts: 1

Other Topics
Posted: Jun 24, 2008 3:54:31 AM
Subject: Huge Problem: "cannot open shared object file: No such file"
Back to top Profile Email Website
Tableless layout Validate XHTML 1.0 Strict Validate CSS Powered by Xaraya