[lagger@192 mysql-5.7.26]$ cmake \
> -DCMAKE_INSTALL_PREFIX=/usr/local/mysql \
> -DMYSQL_DATADIR=/mydata/mysql/data \
> -DSYSCONFDIR=/etc \
> -DMYSQL_USER=mysql \
> -DWITH_MYISAM_STORAGE_ENGINE=1 \
> -DWITH_INNOBASE_STORAGE_ENGINE=1 \
> -DWITH_ARCHIVE_STORAGE_ENGINE=1 \
> -DWITH_MEMORY_STORAGE_ENGINE=1 \
> -DWITH_READLINE=1 \
> -DMYSQL_UNIX_ADDR=/var/run/mysql/mysql.sock \
> -DMYSQL_TCP_PORT=3306 \
CMake Error: The source directory "/home/lagger/mysql-5.7.26/ " does not exist.
Specify --help for usage, or press the help button on the CMake GUI.
[lagger@192 mysql-5.7.26]$ -DENABLED_LOCAL_INFILE=1 \
-bash: -DENABLED_LOCAL_INFILE=1: command not found
[lagger@192 mysql-5.7.26]$ -DENABLE_DOWNLOADS=1 \
> -DWITH_PARTITION_STORAGE_ENGINE=1 \
> -DEXTRA_CHARSETS=all \
-bash: -DENABLE_DOWNLOADS=1: command not found
[lagger@192 mysql-5.7.26]$ -DDEFAULT_CHARSET=utf8 \
> -DDEFAULT_COLLATION=utf8mb4_general_ci \
> -DENABLE_DTRACE=0 \
> -DMYSQL_MAINTAINER_MODE=0 \
> -DWITH_SSL:STRING=bundled \
> -DWITH_ZLIB:STRING=bundled \
> -DDOWNLOAD_BOOST=1 \
> -DWITH_BOOST=/usr/local/boost
-bash: -DDEFAULT_CHARSET=utf8: command not found
[lagger@192 mysql-5.7.26]$
我解决了 你们都可以看下这个网址https://yq.aliyun.com/articles/670111
一步一步来 不要急