Can"t Make myodbc on Mactel

Can"t Make myodbc on Mactel

am 09.11.2006 15:13:41 von singg

--Apple-Mail-1-90827756
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
charset=US-ASCII;
delsp=yes;
format=flowed

There is no intel based Mac version of myodbc ,So I try to build it
myself.

I download file mysql-connector-odbc-3.51.12.tar.gz and untar it to
an dir,
I execute

./configure --prefix=/usr/local
--with-iODBC=/usr
--with-mysql-path=/usr/local/mysql
--disable-shared
--enable-gui=no
--host=i686-apple-darwin8.8.1

it success ,but when i execute make it gave me an error

In file included from MYODBCUtilAllocDataSource.c:21:
MYODBCUtil.h:43:22: error: odbcinst.h: No such file or directory
make[1]: *** [MYODBCUtilAllocDataSource.lo] Error 1
make: *** [all-recursive] Error 1

Please help me,many many thanks!

BTW. forgive me for my poor English,I live in China :-)


--Apple-Mail-1-90827756--

Re: Can"t Make myodbc on Mactel

am 10.11.2006 03:36:32 von Gu Lei

Maybe you can try to install unixODBC. Mysql ODBC works well with unixODBC.

Gu Lei

Ying Ming 写道:
> There is no intel based Mac version of myodbc ,So I try to build it
> myself.
>
> I download file mysql-connector-odbc-3.51.12.tar.gz and untar it to
> an dir,
> I execute
>
> ./configure --prefix=/usr/local
> --with-iODBC=/usr
> --with-mysql-path=/usr/local/mysql
> --disable-shared
> --enable-gui=no
> --host=i686-apple-darwin8.8.1
>
> it success ,but when i execute make it gave me an error
>
> In file included from MYODBCUtilAllocDataSource.c:21:
> MYODBCUtil.h:43:22: error: odbcinst.h: No such file or directory
> make[1]: *** [MYODBCUtilAllocDataSource.lo] Error 1
> make: *** [all-recursive] Error 1
>
> Please help me,many many thanks!
>
> BTW. forgive me for my poor English,I live in China :-)
>
>

--
MySQL ODBC Mailing List
For list archives: http://lists.mysql.com/myodbc
To unsubscribe: http://lists.mysql.com/myodbc?unsub=gcdmo-myodbc@m.gmane.org

Re: Can"t Make myodbc on Mactel

am 10.11.2006 04:07:33 von singg

Thank you for reply! I found the way on google too

just rename /usr/include/iodbcinst.h to /usr/include/odbc.h and =20
there is no error when make and make install!

ÔÚ 2006-11-10£¬ÉÏÎç10:36£¬Gu Lei дµÀ£º

> Maybe you can try to install unixODBC. Mysql ODBC works well with =20
> unixODBC.
>
> Gu Lei
>
> £Ùing £Íing дµÀ:
>> There is no intel based Mac version of myodbc ,So I try to build =20
>> it myself.
>>
>> I download file mysql-connector-odbc-3.51.12.tar.gz and untar it =20
>> to an dir,
>> I execute
>>
>> ./configure --prefix=3D/usr/local
>> --with-iODBC=3D/usr
>> --with-mysql-path=3D/usr/local/mysql
>> --disable-shared
>> --enable-gui=3Dno
>> --host=3Di686-apple-darwin8.8.1
>>
>> it success ,but when i execute make it gave me an error
>>
>> In file included from MYODBCUtilAllocDataSource.c:21:
>> MYODBCUtil.h:43:22: error: odbcinst.h: No such file or directory
>> make[1]: *** [MYODBCUtilAllocDataSource.lo] Error 1
>> make: *** [all-recursive] Error 1
>>
>> Please help me,many many thanks!
>>
>> BTW. forgive me for my poor English,I live in China :-)
>>
>>


--
MySQL ODBC Mailing List
For list archives: http://lists.mysql.com/myodbc
To unsubscribe: http://lists.mysql.com/myodbc?unsub=3Dgcdmo-myodbc@m.gmane.o rg

Re: Can"t Make myodbc on Mactel

am 11.11.2006 09:43:22 von Chris Ridd

On 10/11/06 2:36, Gu Lei wrote:

> Maybe you can try to install unixODBC. Mysql ODBC works well with unixODBC.

Wouldn't that mean that applications using the vendor supplied
iODBC.framework would not be able to use the myodbc connector? That doesn't
seem like a good approach :-(

Cheers,

Chris



--
MySQL ODBC Mailing List
For list archives: http://lists.mysql.com/myodbc
To unsubscribe: http://lists.mysql.com/myodbc?unsub=gcdmo-myodbc@m.gmane.org