Oracle 5.0 Reference Manual page 1768

Table of Contents

Advertisement

See
Section 20.1.3.1.2, "Installing the Windows Connector/ODBC Driver using the Zipped DLL
Package"
for the
20.1.3.5. Building Connector/ODBC from a Source Distribution on Unix
You need the following tools to build MySQL from source on Unix:
• A working ANSI C++ compiler. GCC 4.2.1 or later, Sun Studio 10 or later, Visual Studio 2008 or later,
and many current vendor-supplied compilers are known to work.
• cmake.
• MySQL client libraries and include files from MySQL 4.0.0 or higher. (Preferably MySQL 4.0.16 or
higher). This is required because Connector/ODBC uses calls and structures that exist only starting
from this version of the library. To get the client libraries and include files, visit
downloads/.
If you have built your own MySQL server or client libraries from source using the GNU autotools,
use the
--enable-thread-safe-client
special option is needed if you configure with cmake.
Also, ensure that the
• A compatible ODBC manager must be installed. Connector/ODBC is known to work with the
and
unixODBC
• If you are using a character set that is not compiled into the MySQL client library, install the MySQL
character definitions from the
mysql/share/mysql/charsets). These should be in place if you have installed the MySQL
server on the same machine. See
character set support.
Once you have all the required files, unpack the source files to a separate directory, then run
configure
Typical
Options
cmake
is the default ODBC library used by Connector/ODBC. Alternatively,
iODBC
passing in the appropriate option to cmake. For example:
shell>
cmake -G "Unix Makefiles" -DWITH_UNIXODBC=1
When you run cmake, you might add options to the command line. Here are some examples:
• -DODBC_INCLUDES=dir_name: Used when the ODBC include directory is not found within the
system $PATH.
• -DODBC_LIB_DIR=dir_name: Used when the ODBC library directory is not found within the system
$PATH.
• -DWITH_UNIXODBC=1: Enables unixODBC support.
Additional configure Options
There are a number of other options that you need, or want, to set when configuring the Connector/
ODBC driver before it is built.
• To link the driver with MySQL thread safe client libraries
libmysqlclient_r.a, specify the following
Connector/ODBC Installation
commands to complete the installation.
copy
Note
Connector/5.2 uses
command.
libmysqlclient
managers. See
Section 20.1.2.1.2, "ODBC Driver Managers"
charsets
and build the library using make.
for build, rather than
cmake
option to
configure
library was built and installed as a shared library.
directory into
SHAREDIR
Section 10.1, "Character Set Support"
libmysqlclient_r.so
configure
1748
and its
autoconf
http://dev.mysql.com/
when the libraries were built. No
for more information.
(by default,
/usr/local/
for more information on
unixODBC
option:
configure
iODBC
may be used by
or

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents