[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
下载的包有问题,里面少了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]#
都已经说了 这个目录不存在
The source directory "/root/soft_lamp/mysql-5.5.21-linux2.6-x86_64/ " does not exist.
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]#
有这个目录的,而且是在这个文件夹的