全部博文(389)
分类: Mysql/postgreSQL
2013-12-08 16:16:28
MySQL源码安装
OS:Red Hat Enterprise Linux Server release 5.5 (Tikanga),2.6.18-194.el5
MySQL版片本:mysql-5.6.14
检查必需的包
[root@localhost soft]# rpm -q make
make-3.81-3.el5
[root@localhost soft]# rpm -q gcc
gcc-4.1.2-48.el5
[root@localhost soft]# rpm -q perl
perl-5.8.8-27.el5
[root@localhost soft]# rpm -q libaio-devel
libaio-devel-0.3.106-5
安装cmake,gpref和ncruses-devel
[root@localhost soft]# yum install gperf.x86_64
..............................................
Installed:
gperf.x86_64 0:3.0.1-7.2.2 op
Complete!
[root@localhost oracle]# yum install ncurses-devel.x86_64
[root@localhost cmake-2.8.12.1]# tar -xzvf cmake-2.8.12.1.tar.gz --
[root@localhost cmake-2.8.12.1]# ./configure
[root@localhost cmake-2.8.12.1]# gmake
cmake-2.8.12.1]# make install
开始编译MySQL源码
[root@localhost mysql-5.6.14]# cmake . --这里有很多选项,详情可以参考官方文档
[root@localhost mysql-5.6.14]# make
[root@localhost mysql-5.6.14]# make install DESTDIR="/opt/mysql"