首页 新闻 赞助 找找看

安装mysql总是出现这个问题" does not exist. Specify --help for usage, or press the help button on the CMake GUI.

0
[已解决问题] 解决于 2019-02-14 14:20

[root@localhost mysql-5.5.21-linux2.6-x86_64]# 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_PARTITION_STORAGE_ENGINE=1 -DWITH_READLINE=1 -DMYSQL_UNIX_ADDR=/var/run/mysql/mysql.sock -DMYSQL_TCP_PORT=3306  
CMake Error: The source directory "/root/soft_lamp/mysql-5.5.21-linux2.6-x86_64/ " does not exist.
Specify --help for usage, or press the help button on the CMake GUI.

不管是哪个版本出现的情况都是一样,包应该是没有问题的

问题补充:

[root@localhost mysql-5.5.21-linux2.6-x86_64]# cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql55/ > -DMYSQL_UNIX_ADDR=/tmp/mysql.sock > -DMYSQL_DATADIR=/data/mysql > -DSYSCONFDIR=/etc > -DMYSQL_USER=mysql > -DMYSQL_TCP_PORT=3306 > -DWITH_XTRADB_STORAGE_ENGINE=1 > -DWITH_INNOBASE_STORAGE_ENGINE=1 > -DWITH_PARTITION_STORAGE_ENGINE=1 > -DWITH_BLACKHOLE_STORAGE_ENGINE=1 > -DWITH_MYISAM_STORAGE_ENGINE=1 > -DWITH_READLINE=1 > -DENABLED_LOCAL_INFILE=1 > -DWITH_EXTRA_CHARSETS=1 > -DDEFAULT_CHARSET=utf8 > -DDEFAULT_COLLATION=utf8_general_ci > -DEXTRA_CHARSETS=all > -DWITH_BIG_TABLES=1 > -DWITH_DEBUG=0
CMake Error: The source directory "/root/soft_lamp/mysql-5.5.21-linux2.6-x86_64" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
上面cmake 后面少加了一个点“.” ,但是还是缺少CMakelist.txt

linux笔记的主页 linux笔记 | 菜鸟二级 | 园豆:204
提问于:2019-02-13 14:20
< >
分享
最佳答案
0

下载的包有问题,里面少了Cmakelist.txt
[root@localhost mysql-5.5.20]# ls
BUILD configure.cmake INSTALL-WIN-SOURCE packaging sql-common vio
BUILD-CMAKE COPYING libmysql plugin storage win
client dbug libmysqld README strings zlib
cmake Docs libservices regex support-files
CMakeLists.txt extra man scripts tests
cmd-line-utils include mysql-test sql unittest
config.h.cmake INSTALL-SOURCE mysys sql-bench VERSION
[root@localhost mysql-5.5.20]# cd
[root@localhost ~]# cls
-bash: cls: 未找到命令
[root@localhost ~]# ls
1 ll mysql-5.5.21-linux2.6-x86_64.tar.gz
19 mysql-5.5.20 scores.sh
anaconda-ks.cfg mysql-5.5.20-linux2.6-x86_64 test.sh
first_shell.sh mysql-5.5.20-linux2.6-x86_64.tar.gz test.txt
if.sh mysql-5.5.20.tar.gz var.sh
jingfeng mysql-5.5.21-linux2.6-x86_64 wenle
[root@localhost ~]# cd mysql-5.5.20-linux2.6-x86_64/
[root@localhost mysql-5.5.20-linux2.6-x86_64]# ls
bin data include lib mysql-test scripts sql-bench
COPYING docs INSTALL-BINARY man README share support-files
[root@localhost mysql-5.5.20-linux2.6-x86_64]#

linux笔记 | 菜鸟二级 |园豆:204 | 2019-02-14 14:19
其他回答(1)
0

都已经说了 这个目录不存在
The source directory "/root/soft_lamp/mysql-5.5.21-linux2.6-x86_64/ " does not exist.

ycyzharry | 园豆:25639 (高人七级) | 2019-02-13 14:38

CMake Error: The source directory "/root/soft_lamp/mysql-5.5.21-linux2.6-x86_64/ " does not exist.
Specify --help for usage, or press the help button on the CMake GUI.
[root@localhost mysql-5.5.21-linux2.6-x86_64]# pwd
/root/soft_lamp/mysql-5.5.21-linux2.6-x86_64
[root@localhost mysql-5.5.21-linux2.6-x86_64]# ls
bin data include lib mysql-test scripts sql-bench
COPYING docs INSTALL-BINARY man README share support-files
[root@localhost mysql-5.5.21-linux2.6-x86_64]#
有这个目录的,而且是在这个文件夹的

支持(0) 反对(0) linux笔记 | 园豆:204 (菜鸟二级) | 2019-02-13 14:57
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册