Dealing with Problems Compiling MySQL
123
This causes a safe memory allocator to be included that can find some errors and that provides
output about what is happening. See
MySQL Internals: Porting to Other Systems
.
As of MySQL 5.0.25, using
--with-debug
[122]
to configure MySQL with debugging support
enables you to use the
--debug="d,parser_debug"
[405]
option when you start the server.
This causes the Bison parser that is used to process SQL statements to dump a parser trace to the
server's standard error output. Typically, this output is written to the error log.
• If your client programs are using threads, you must compile a thread-safe version of the MySQL
client library with the
--enable-thread-safe-client
[123]
configure option. This creates
a
libmysqlclient_r
library with which you should link your threaded applications. See
Section 20.6.3.2, “Writing C API Threaded Client Programs”
.
• Some features require that the server be built with compression library support, such as the
COMPRESS()
[954]
and
UNCOMPRESS()
[957]
functions, and compression of the client/
server protocol. The
--with-zlib-dir=no|bundled|DIR
[123]
option provides control over
compression library support. The value
no
explicitly disables compression support.
bundled
causes
the
zlib
library bundled in the MySQL sources to be used. A
DIR
path name specifies the directory
in which to find the compression library sources.
• It is possible to build MySQL 5.0 with large table support using the
--with-big-tables
[123]
option, beginning with MySQL 5.0.4.
This option causes the variables that store table row counts to be declared as
unsigned long
long
rather than
unsigned long
. This enables tables to hold up to approximately 1.844E
+19 ((2
32
)
2
) rows rather than 2
32
(~4.295E+09) rows. Previously it was necessary to pass
-
DBIG_TABLES
to the compiler manually in order to enable this feature.
• Run
configure
with the
--disable-grant-options
[123]
option to cause the
--bootstrap
[402]
,
--skip-grant-tables
[420]
, and
--init-file
[409]
options for
mysqld
to be disabled. For Windows, the
configure.js
script recognizes the
DISABLE_GRANT_OPTIONS
flag, which has the same effect. The capability is available as of MySQL
5.0.34.
• This option allows MySQL Community Server features to be enabled. Additional options may
be required for individual features, such as
--enable-profiling
[123]
to enable statement
profiling. This option was added in MySQL 5.0.82.
• In MySQL Community Server, this option enables the statement profiling capability exposed by
the
SHOW PROFILE
and
SHOW PROFILES
statements. (See
Section 13.7.5.29, “
SHOW PROFILES
Syntax”
.) The option was added in MySQL 5.0.37.
• See
Section 2.20, “Operating System-Specific Notes”
, for options that pertain to particular operating
systems.
• See
Section 6.3.6.2, “Configuring MySQL for SSL”
, for options that pertain to configuring MySQL to
support secure (encrypted) connections.
2.17.4. Dealing with Problems Compiling MySQL
All MySQL programs compile cleanly for us with no warnings on Solaris or Linux using
gcc
. On other
systems, warnings may occur due to differences in system include files. For other problems, check the
following list.
The solution to many problems involves reconfiguring. If you do need to reconfigure, take note of the
following:
• If
configure
is run after it has previously been run, it may use information that was gathered during
its previous invocation. This information is stored in
config.cache
. When
configure
starts up,
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 ...