Connector/ODBC Installation
1751
Before running the tests, create the DSN 'myodbc3' in
odbc.ini
and set the environment variable
ODBCINI
to the correct
odbc.ini
file; and MySQL server is running. You can find a sample
odbc.ini
with the driver distribution.
You can even modify the
samples/run-samples
script to pass the desired DSN, UID, and
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
configure
example:
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
unixODBC
and MySQL are installed in the default locations. If not,
configure accordingly.
On Mac OS X,
--enable-shared
builds
.dylib
files by default. You can build
.so
files like this:
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
-liodbcinst
to
-lodbcinst
in case of using
unixODBC
instead of
iODBC
and configure the libraries path accordingly.
In Apple's version of GCC, both
cc
and
gcc
are actually symbolic links to
gcc3
.
Copy this library to the
$prefix/lib
directory and symlink to
libmyodbc3.so
.
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
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.
To obtain the most recent development source tree, first download and install Bazaar from the
Bazaar
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
2.52 (or newer).
Содержание 5.0
Страница 1: ...MySQL 5 0 Reference Manual ...
Страница 18: ...xviii ...
Страница 60: ...40 ...
Страница 396: ...376 ...
Страница 578: ...558 ...
Страница 636: ...616 ...
Страница 844: ...824 ...
Страница 1234: ...1214 ...
Страница 1426: ...MySQL Proxy Scripting 1406 The following diagram shows an overview of the classes exposed by MySQL Proxy ...
Страница 1427: ...MySQL Proxy Scripting 1407 ...
Страница 1734: ...1714 ...
Страница 1752: ...1732 ...
Страница 1783: ...Configuring Connector ODBC 1763 ...
Страница 1793: ...Connector ODBC Examples 1773 ...
Страница 1839: ...Connector Net Installation 1819 2 You must choose the type of installation to perform ...
Страница 1842: ...Connector Net Installation 1822 5 Once the installation has been completed click Finish to exit the installer ...
Страница 1864: ...Connector Net Visual Studio Integration 1844 Figure 20 24 Debug Stepping Figure 20 25 Function Stepping 1 of 2 ...
Страница 2850: ...2830 ...
Страница 2854: ...2834 ...
Страница 2928: ...2908 ...
Страница 3000: ...2980 ...
Страница 3122: ...3102 ...
Страница 3126: ...3106 ...
Страница 3174: ...3154 ...
Страница 3232: ...3212 ...