標籤:mysql錯誤
[[email protected] fangwei]# cd mysql-connector-c-6.0.2-linux-sles10-x86-64bit
[[email protected] mysql-connector-c-6.0.2-linux-sles10-x86-64bit]# cmake -DCMAKE_INSTALL_PREFIX=/opt/mysql/ -DMYSQL_DATADIR=/opt/mysql/data -DMYSQL_UNIX_ADDR=/opt/mysql/data/mysqld.sock -DWITH_INNOBASE_STORAGE_ENGINE=1 -DENABLED_LOCAL_INFILE=1 -DMYSQL_TCP_PORT=3306 -DEXTRA_CHARSETS=all -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci -DMYSQL_UNIX_ADDR=/opt/mysql/data/mysql.sock -DMYSQL_USER=mysql -DWITH_DEBUG=0
CMake Error: The source directory "/root/fangwei/mysql-connector-c-6.0.2-linux-sles10-x86-64bit" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
[[email protected] mysql-connector-c-6.0.2-linux-sles10-x86-64bit]#
在linux下安裝mysql6.0.2的時候報錯,網上搜了一下解決方案有的說要打:先打底層包:
yum -y install gcc gcc-c++ gcc-g77 autoconf automake zlib* fiex* libxml* ncurses-devel libmcrypt* libtool-ltdl-devel* make cmake bison
yum -y install bison
我按照這個方法也打了底層包,依然出錯!
本文出自 “ghost” 部落格,請務必保留此出處http://caizi.blog.51cto.com/5234706/1543357