[unixODBC-support] unixODBC manager and MySQL connector

Fahad Ali fahad01hbti at gmail.com
Mon Dec 17 18:46:01 GMT 2012


[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
-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
-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

[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.

On Mon, Dec 17, 2012 at 1:23 PM, Nick Gorham <nick at lurcher.org> wrote:

> On 17/12/12 18:17, Fahad Ali wrote:
>
>> Thanks for the reply Nick,
>>
>> i am installing below versions,
>>
>> unixODBC-2.3.1
>> mysql-connector-odbc-5.2.2-**linux-glibc2.3-x86-64bit
>>
>> My server is RHEL 6.3 64-bit.
>>
>> I have below questions,
>> 1 - is it necessary to have mysql connector of 64-bit or 32-bit will work
>> ?
>>
> If you have installed a 64 bit driver, you need to build the driver
> manager as 64 bit also.
>
> export CFLAGS=-m64
> ./configure
> make
> make install
>
>  2 - when i am running the below command, the given error is coming,
>> [sas93 at dc4coj bin]$  myodbc3i -d -a -n "MySQL" -t
>> "DRIVER=/sasapps/unixODBC/**mysql-connector-odbc-3.51.30-**
>> linux-rhel5-x86-32bit/bin/**libodbcinst.so.1"
>> myodbc3i: error while loading shared libraries: libodbcinst.so.1: cannot
>> open shared object file: No such file or directory
>>
>
> May be because the driver manager is built 32 bit.
>
> --
> NIck
> ______________________________**_________________
> unixODBC-support mailing list
> unixODBC-support at mailman.**unixodbc.org<unixODBC-support at mailman.unixodbc.org>
> http://mailman.unixodbc.org/**mailman/listinfo/unixodbc-**support<http://mailman.unixodbc.org/mailman/listinfo/unixodbc-support>
>



-- 
*Thanks & Regards,
Fahad Ali*
*Mob: +1 647 864 2786*
E-mail: fahad01hbti at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.unixodbc.org/pipermail/unixodbc-support/attachments/20121217/354802c0/attachment-0001.html>


More information about the unixODBC-support mailing list