Oracle 5.0 Reference Manual page 1770

Table of Contents

Advertisement

shell>
CC=/usr/bin/gcc \
$CC -bundle -flat_namespace -undefined error \
-o .libs/libmyodbc3-3.51.01.so \
catalog.o connect.o cursor.o dll.o error.o execute.o \
handle.o info.o misc.o myodbc3.o options.o prepare.o \
results.o transact.o utility.o \
-L/usr/local/mysql/lib/mysql/ \
-L/usr/local/iodbc/lib/ \
-lz -lc -lmysqlclient -liodbcinst
Make sure to change
and configure the library paths accordingly.
This builds and places the
the Connector/ODBC library installation directory (/usr/local/lib, or the
installation directory that you supplied with the
shell>
cd .libs
shell>
cp libmyodbc3-3.51.01.so /usr/local/lib
shell>
cd /usr/local/lib
shell>
ln -s libmyodbc3-3.51.01.so libmyodbc3.so
To build the thread-safe driver library:
shell>
CC=/usr/bin/gcc \
$CC -bundle -flat_namespace -undefined error
-o .libs/libmyodbc3_r-3.51.01.so
catalog.o connect.o cursor.o dll.o error.o execute.o
handle.o info.o misc.o myodbc3.o options.o prepare.o
results.o transact.o utility.o
-L/usr/local/mysql/lib/mysql/
-L/usr/local/iodbc/lib/
-lz -lc -lmysqlclient_r -liodbcinst
Installing Driver Libraries
To install the driver libraries, execute the following command:
shell>
make install
That command installs one of the following sets of libraries:
For Connector/ODBC 3.51:
libmyodbc3.so
• libmyodbc3-3.51.01.so, where 3.51.01 is the version of the driver
libmyodbc3.a
For thread-safe Connector/ODBC 3.51:
libmyodbc3_r.so
libmyodbc3-3_r.51.01.so
libmyodbc3_r.a
For more information on build process, refer to the
distribution. Note that if you are trying to use the
other hand, GNU
Testing Connector/ODBC on Unix
To run the basic samples provided in the distribution with the libraries that you built, use the following
command:
shell>
make test
Connector/ODBC Installation
to
-liodbcinst
-lodbcinst
libmyodbc3-3.51.01.so
should work fine on all platforms.
gmake
if you are using
file in the
.libs
option).
--prefix
file that comes with the source
INSTALL
from Sun, you may end up with errors. On the
make
1750
instead of iODBC,
unixODBC
directory. Copy this file to
directory under the
lib

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents