MySQL编译安装的CMake Error: The source directory "/root/mysql-5.6.10/-with-ssl" does not exist.

时间:2022-09-22 13:06:02

[root@localhost mysql-5.6.10]# time cmake  -DCMAKE_INSTALL_PREFIX=/usr/local/mysql56   -DMYSQL_DATADIR=/data56 -DWITH_INNOBASE_STORAGE_ENGINE=1 -DMYSQL_UNIX_ADDR==/data56/mysql.sock -DMYSQL_USER=mysql -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci -with-ssl
CMake Error: The source directory "/root/mysql-5.6.10/-with-ssl" does not exist.
Specify --help for usage, or press the help button on the CMake GUI.

real    0m0.014s
user    0m0.011s
sys     0m0.003s

 

 

[]PS: MySQL5.5以上版本ssl编译参数与5.1不同

5.5版本

time cmake  -DCMAKE_INSTALL_PREFIX=/usr/local/mysql56   -DMYSQL_DATADIR=/data56 -DWITH_INNOBASE_STORAGE_ENGINE=1 -DMYSQL_UNIX_ADDR==/data56/mysql.sock -DMYSQL_USER=mysql -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci-DWITH_SSL=yes

 

 

5.1 版本

./configure --with-ssl .....

 

参考:

http://smallq.iteye.com/blog/1161319

http://www.docin.com/p-151590189.html