[unixODBC-support] cannot open shared object file: No such file or directory

Brian Schonecker Brian.Schonecker at Xtek.com
Thu Mar 27 14:44:10 GMT 2008

I've managed to ./configure, make and make install unixODB just fine.  I see that make install installs the files in /usr/local just fine.

When I run 'isql' I get the following error:

sql: error while loading shared libraries: libodbc.1: cannot open shared object file: No such file or directory

OK, so my library path must not include /usr/local/lib * but it does!

perforce:/usr/local # find . | grep libodbc.1

Unfortunately, when I do a 'ldconfig -v', all I get for /usr/local/lib is a blank line as such:

[snip above]
        libethereal.so.0 -> libethereal.so.0.0.1
        libXrandr.so.2 -> libXrandr.so.2.0
        libXmu.so.6 -> libXmu.so.6.2
        libimlib-jpeg.so -> libimlib-jpeg.so
        libIIOP.so.0 -> libIIOP.so.0.5.17
[snip below]

I've verified that /usr/local/lib is in my /etc/ld.so.conf file.  I've even added a .conf file to /etc/ld.so.conf.d pointint to /usr/local/lib.

I've even recompiled unixODBC with different prefix-dirs but to no avail.

I've done this on other systems before.  Any idea what might be going on?

perforce:/usr/local # uname -a
Linux perforce 2.6.5-7.244-bigsmp #1 SMP Mon Dec 12 18:32:25 UTC 2005 i686 i686 i386 GNU/Linux
perforce:/usr/local # cat /etc/SuSE-release 
SUSE LINUX Enterprise Server 9 (i586)

Thanks, Brian

More information about the unixODBC-support mailing list