Oracle 5.0 Reference Manual page 1771

Table of Contents

Advertisement

Before running the tests, create the DSN 'myodbc3' in
to the correct
ODBCINI
with the driver distribution.
odbc.ini
You can even modify the
PASSWORD values as the command-line arguments to each sample.
20.1.3.6. Building Connector/ODBC from a Source Distribution on Mac OS X
To build the driver on Mac OS X (Darwin), make use of the following
shell>
./configure --prefix=/usr/local
--with-unixODBC=/usr/local
--with-mysql-path=/usr/local/mysql
--disable-shared
--enable-gui=no
--host=powerpc-apple
The command assumes that the
configure accordingly.
On Mac OS X,
shell>
make
shell>
cd driver
shell>
CC=/usr/bin/gcc \
$CC -bundle -flat_namespace -undefined error
-o .libs/libmyodbc3-3.51.01.so *.o
-L/usr/local/mysql/lib/
-L/usr/local/iodbc/lib
-liodbcinst -lmysqlclient -lz -lc
To build the thread-safe driver library:
shell>
CC=/usr/bin/gcc \
$CC -bundle -flat_namespace -undefined error
-o .libs/libmyodbc3-3.51.01.so *.o
-L/usr/local/mysql/lib/
-L/usr/local/iodbc/lib
-liodbcinst -lmysqlclienti_r -lz -lc -lpthread
Make sure to change the
and configure the libraries path accordingly.
In Apple's version of GCC, both
Copy this library to the
You can cross-check the output shared-library properties using this command:
shell>
otool -LD .libs/libmyodbc3-3.51.01.so
20.1.3.7. Installing Connector/ODBC from the Development Source Tree
To obtain the most recent development source tree, first download and install Bazaar from the
VCS Web
site. Bazaar is supported by any platform that supports Python, and is therefore compatible
with any Linux, Unix, Windows or Mac OS X host. Instructions for downloading and installing Bazaar on
the different platforms are available on the Bazaar Web site.
Building from the source trees requires the following tools:
autoconf
Connector/ODBC Installation
file; and MySQL server is running. You can find a sample
odbc.ini
samples/run-samples
unixODBC
builds
--enable-shared
-liodbcinst
and
cc
$prefix/lib
Caution
Read this section only if you are interested in helping us test our new code.
To just get MySQL Connector/ODBC up and running on your system, use a
standard release distribution.
2.52 (or newer).
odbc.ini
script to pass the desired DSN, UID, and
and MySQL are installed in the default locations. If not,
files by default. You can build
.dylib
to
in case of using
-lodbcinst
are actually symbolic links to gcc3.
gcc
directory and symlink to libmyodbc3.so.
1751
and set the environment variable
example:
configure
files like this:
.so
instead of
unixODBC
iODBC
Bazaar

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents