Connector/ODBC Installation
1749
--enable-thread-safe
and can be disabled (default) using
--disable-thread-safe
This option enables the building of the driver thread-safe library
libmyodbc3_r.so
from by
linking with MySQL thread-safe client library
libmysqlclient_r.so
. (The extensions are OS-
dependent.)
If the compilation with the thread-safe option fails, it may be because the correct thread-libraries on
the system could not be located. Set the value of
LIBS
to point to the correct thread library for your
system.
LIBS="-lpthread" ./configure ..
• You can enable or disable the shared and static versions of Connector/ODBC using these options:
--enable-shared[=yes|no]
--disable-shared
--enable-static[=yes|no]
--disable-static
• By default, all the binary distributions are built as non-debug versions (configured with
--without-
debug
).
To enable debugging information, build the driver from a source distribution with the proper
configuration option to enable debugging support. See
Section 2.17.3, “MySQL Source-Configuration
Options”
.
• This option is available only for source trees that have been obtained from the Subversion repository.
This option does not apply to the packaged source distributions.
By default, the driver is built with the
--without-docs
option. If you would like the documentation
to be built, then execute
configure
with:
--with-docs
Build Steps for Unix
To build the driver libraries, execute
make
:
shell>
make
If any errors occur, correct them and continue the build process. If you are not able to build, then send
a detailed email to
<myodbc@lists.mysql.com>
for further assistance.
Building Shared Libraries
On most platforms, MySQL does not build or support
.so
(shared) client libraries by default. This is
based on our experience of problems when building shared libraries.
In cases like this, you have to download the MySQL distribution and configure it with these options:
--without-server --enable-shared
To build shared driver libraries, specify the
--enable-shared
option for
configure
. By default,
configure
does not enable this option.
If you have configured with the
--disable-shared
option, you can build the
.so
file from the static
libraries using the following commands:
shell>
cd mysql-connector-odbc-3.51.01
shell>
make
shell>
cd driver
Summary of Contents for 5.0
Page 1: ...MySQL 5 0 Reference Manual ...
Page 18: ...xviii ...
Page 60: ...40 ...
Page 396: ...376 ...
Page 578: ...558 ...
Page 636: ...616 ...
Page 844: ...824 ...
Page 1234: ...1214 ...
Page 1427: ...MySQL Proxy Scripting 1407 ...
Page 1734: ...1714 ...
Page 1752: ...1732 ...
Page 1783: ...Configuring Connector ODBC 1763 ...
Page 1793: ...Connector ODBC Examples 1773 ...
Page 1839: ...Connector Net Installation 1819 2 You must choose the type of installation to perform ...
Page 2850: ...2830 ...
Page 2854: ...2834 ...
Page 2928: ...2908 ...
Page 3000: ...2980 ...
Page 3122: ...3102 ...
Page 3126: ...3106 ...
Page 3174: ...3154 ...
Page 3232: ...3212 ...