MySQL Source-Configuration Options
115
Prepare the remainder of the source tree:
shell>
autoreconf --force --install
As an alternative to the preceding
autoreconf
command, you can use
BUILD/autorun.sh
,
which acts as a shortcut for the following sequence of commands:
shell>
aclocal; autoheader
shell>
libtoolize --automake --force
shell>
automake --force --add-missing; autoconf
shell>
(cd bdb/dist; sh s_all)
shell>
(cd innobase; aclocal; autoheader; autoconf; automake)
If you get some strange errors during this stage, verify that you have the correct version of
libtool
installed.
3. Configure the source tree and compile MySQL:
shell>
./configure # Add your favorite options here
shell>
make
For a description of some
configure
options, see
Section 2.17.3, “MySQL Source-Configuration
Options”
.
A collection of configuration scripts is located in the
BUILD/
subdirectory. For example, you may
find it more convenient to use the
BUILD/compile-pentium-debug
script than the preceding
set of shell commands. To compile on a different architecture, modify the script by removing flags
that are Pentium-specific, or use another script that may be more appropriate. These scripts are
provided on an “as-is” basis. They are not supported and their contents may change from release to
release.
4. When the build is done, run
make install
. Be careful with this on a production machine; the
installation command may overwrite your live release installation. If you already have MySQL
installed and do not want to overwrite it, run
./configure
with values for the
--prefix
[121]
,
--with-tcp-port
[121]
, and
--with-unix-socket-path
[121]
options different from
those used by your production server. For additional information about preventing multiple servers
from interfering with each other, see
Section 5.3, “Running Multiple MySQL Instances on One
Machine”
.
5. Play hard with your new installation. For example, try to make new features crash. Start by running
make test
. See
Section 21.1.2, “The MySQL Test Suite”
.
6. If you have gotten to the
make
stage, but the distribution does not compile, please enter the
problem into our bugs database using the instructions given in
Section 1.7, “How to Report Bugs
or Problems”
. If you have installed the latest versions of the required tools, and they crash trying
to process our configuration files, please report that also. However, if you get a
command not
found
error or a similar problem for required tools, do not report it. Instead, make sure that all the
required tools are installed and that your
PATH
variable is set correctly so that your shell can find
them.
2.17.3. MySQL Source-Configuration Options
The
configure
script provides a great deal of control over how you configure a MySQL source
distribution. Typically, you do this using options on the
configure
command line. For a full list of
options supported by
configure
, run this command:
shell>
./configure --help
You can also affect
configure
using certain environment variables. See
Section 2.21, “Environment
Variables”
.
The following table shows the available
configure
options.
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 ...