* Normal Build Methods For Users
In this step, I don't
intent to introduce the normal build methods. It is the
responsibility of 'MySQL Reference Manual'. In the reference manual,
there are very clear descriptions about the topic in "Chapter 2. Installing and Upgrading MySQL".
* Build Scripts For Developers
A group of build scripts are created for development purpose. They are in 'BUILD' directory. I
could say it is the easiest way to build MySQL server code by using
build scripts. Each of those scripts compiles the code on a special
hardware platform with a group of special options. Those options are for
special debug functions and MySQL features. With these scripts, we can
setup a auto build environment easily.
A simple pattern is used to name the scripts. So it is very easy to know the purpose of those scripts from their names.
- compile-ppc
- compile-pentium-max
- compile-pentium64-valgrind-max
- compile-amd64-valgrind-max
@ CPU-Arch(pentiun|pentiun64 etc.)
means compiling with options for the given CPU
architecture.
@ debug means MySQL debug code is built in.
@ valgrind means the build supports valgrind debug.
@ max means all MySQL features are built in.
If there is no appropriate script, you can also execute configure directly:
BUILD/autorun.sh
./configure
make
sudo make install
'configure' command can be followed by options. For a full list of options, you can run:
Note: You will probably encounter some errors if it is the first
time that you build the source code. Because some necessary
build tools and related libraries are not installed. Don't
worry, just install them according to hints in the error
messages.
阅读(509) | 评论(0) | 转发(0) |