Chinaunix首页 | 论坛 | 博客
  • 博客访问: 9557
  • 博文数量: 5
  • 博客积分: 176
  • 博客等级: 入伍新兵
  • 技术积分: 80
  • 用 户 组: 普通用户
  • 注册时间: 2011-10-08 18:25
文章分类

全部博文(5)

文章存档

2011年(5)

我的朋友

分类: Mysql/postgreSQL

2011-10-16 23:38:03

* 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.
  1.  compile-ppc
  2.  compile-pentium-max
  3.  compile-pentium64-valgrind-max
  4.  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:
  1.  configure --help
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.


阅读(464) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~