当前位置:Gxlcms > mysql > mysql-cmake编译MySQL时报错:thesourcedirectory"xxx"doesnotexist怎么解决啊

mysql-cmake编译MySQL时报错:thesourcedirectory"xxx"doesnotexist怎么解决啊

时间:2021-07-01 10:21:17 帮助过:15人阅读

mysql安装失败cmake安装

系统ubuntu 13.04 \ gcc version 4.7.3 \ cmake version 2.8.10.1

安装完cmake后,在mysql解压缩目录下,使用如下命令行:
cmake . \
-DCMAKE_INSTALL_PREFIX=/usr/local/mysql \
-DMYSQL_DATADIR=/data/mysql \
-DSYSCONFDIR=/etc \
-DWITH_MYISAM_STORAGE_ENGINE=1 \

-DWITH_INNOBASE_STORAGE_ENGINE=1 \

-DWITH_MEMORY_STORAGE_ENGINE=1 \

-DWITH_READLINE=1 \
-DMYSQL_UNIX_ADDR=/tmp/mysqld.sock \

-DMYSQL_TCP_PORT=3306 \
-DENABLED_LOCAL_INFILE=1 \

-DWITH_PARTITION_STORAGE_ENGINE=1 \
-DWITH_EXTRA_CHARSETS:STRING=utf8,gbk \
-DDEFAULT_CHARSET=utf8 \
-DDEFAULT_COLLATION=utf8_general_ci \

报错,提示cake error:the source directory “/usr/local/src/software/mysql-5.6.11/DDEFAULT_COLLATION=utf8_general_ci” does not exist.

怎么回事啊?删掉最后一行,又会报倒数第二行找不到目录!

人气教程排行