日期:2014-05-16  浏览次数:21252 次

MySQL5.5 编译 configure向cmake过渡

?

1、命令语法

configure Command CMake Command
./configure cmake .
./configure --help cmake . -LH or ccmake .

?

重新编译时,需要清除旧的对象文件和缓存信息

shell>?make clean
shell> rm -f? CMakeCache.txt

?

2、安装选项

Parameter configure Option CMake Option CMake Notes
Installation base directory --prefix=/usr -DCMAKE_INSTALL_PREFIX=/usr
mysqld directory --libexecdir=/usr/sbin -DINSTALL_SBINDIR=sbin interpreted relative to prefix
Data directory --localstatedir=/var/lib/mysql -DMYSQL_DATADIR=/var/lib/mysql
Config directory (for my.cnf) --sysconfdir=/etc/mysql -DSYSCONFDIR=/etc/mysql
Plugin directory --with-plugindir=/usr/lib64/mysql/plugin -DINSTALL_PLUGINDIR=lib64/mysql/plugin interpreted relative to prefix