[unixODBC-support] unixODBC manager and MySQL connector

Nick Gorham nick at lurcher.org
Mon Dec 17 21:20:51 GMT 2012


On 17/12/12 18:46, Fahad Ali wrote:
> [sas93 at dc4coj bin]$ ls -ltr /sasapps/unixODBC/odbc1/lib
> total 892
> -rwxr-xr-x 1 sas93 sas93 134161 Dec 17 13:36 libodbcinst.so.2.0.0
> lrwxrwxrwx 1 sas93 sas93     20 Dec 17 13:36 libodbcinst.so.2 -> 
> libodbcinst.so.2.0.0
> lrwxrwxrwx 1 sas93 sas93     20 Dec 17 13:36 libodbcinst.so -> 
> libodbcinst.so.2.0.0
> -rwxr-xr-x 1 sas93 sas93    995 Dec 17 13:36 libodbcinst.la 
> <http://libodbcinst.la>
> -rwxr-xr-x 1 sas93 sas93 639307 Dec 17 13:36 libodbc.so.2.0.0
> lrwxrwxrwx 1 sas93 sas93     16 Dec 17 13:36 libodbc.so.2 -> 
> libodbc.so.2.0.0
> lrwxrwxrwx 1 sas93 sas93     16 Dec 17 13:36 libodbc.so -> 
> libodbc.so.2.0.0
> -rwxr-xr-x 1 sas93 sas93    971 Dec 17 13:36 libodbc.la 
> <http://libodbc.la>
> -rwxr-xr-x 1 sas93 sas93  57633 Dec 17 13:36 libodbccr.so.2.0.0
> lrwxrwxrwx 1 sas93 sas93     18 Dec 17 13:36 libodbccr.so.2 -> 
> libodbccr.so.2.0.0
> lrwxrwxrwx 1 sas93 sas93     18 Dec 17 13:36 libodbccr.so -> 
> libodbccr.so.2.0.0
> -rwxr-xr-x 1 sas93 sas93    983 Dec 17 13:36 libodbccr.la 
> <http://libodbccr.la>
>
> [sas93 at dc4coj bin]$ file  /sasapps/unixODBC/odbc1/lib/libodbc.so.2.0.0
> /sasapps/unixODBC/odbc1/lib/libodbc.so.2.0.0: ELF 64-bit LSB shared 
> object, x86-64, version 1 (SYSV), dynamically linked, not stripped
>
> i untar the mysql files , under
> /sasapps/unixODBC/mysql-connector-odbc-5.2.2-linux-glibc2.3-x86-64bit/
>
> i am trying to run
>
> myodbc-installer -d -a -n "MySQL" -t 
> "DRIVER=/sasapps/unixODBC/odbc1/lib/libodbc.so.2
>
> from path 
> /sasapps/unixODBC/mysql-connector-odbc-5.2.2-linux-glibc2.3-x86-64bit/bin
>
> but getting the error myodbc-installer: error while loading shared 
> libraries: libodbc.so.2: cannot open shared object file: No such file 
> or directory
>
> i am new to this installation. i am not able to figure out the problem.

Try

ldd /sasapps/unixODBC/odbc1/lib/libodbc.so.2

And see if its 32 or 64 bit.

If its 32 bit build as 64 bit.
If its 64 bit, check the lib can be found

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/sasapps/unixODBC/odbc1/lib/

And try again

-- 
Nick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.unixodbc.org/pipermail/unixodbc-support/attachments/20121217/38841c7e/attachment.html>


More information about the unixODBC-support mailing list