mysql-cmake编译MySQL时报错:the source directory "xxx" does not exist 怎么解决啊
程序员文章站
2022-05-02 13:33:26
...
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.
怎么回事啊?删掉最后一行,又会报倒数第二行找不到目录!