CentOS安装MySQL时报Curses library not found异常
时间:2014-09-26 08:45来源:csdn.net 作者:it
信息如
-
CMake Error at cmake/readline.cmake:83 (MESSAGE):
-
Curses library not found. Please install appropriate package
-
-
-
remove CMakeCache.txt and rerun cmake.On Debian/Ubuntu, package name is libncurses5-dev, on Redhat and derivates it is ncurses-devel.
-
Call Stack (most recent call first):
-
cmake/readline.cmake:127 (FIND_CURSES)
-
cmake/readline.cmake:217 (MYSQL_USE_BUNDLED_LIBEDIT)
-
CMakeLists.txt:268 (MYSQL_CHECK_READLINE)
-
-
-
-- Configuring incomplete, errors occurred!
解决方法
Step1:
# rm CMakeCache.txt
Step2:
# yum install ncurses-devel
Step3:
# cmake -DCMAKE_INSTALL_PREFIX=/usr/local/mysql \
-DMYSQL_UNIX_ADDR=/usr/local/mysql/mysql.sock \
-DDEFAULT_CHARSET=utf8 \
-DDEFAULT_COLLATION=utf8_general_ci \
-DWITH_MYISAM_STORAGE_ENGINE=1 \
-DWITH_INNOBASE_STORAGE_ENGINE=1 \
-DWITH_MEMORY_STORAGE_ENGINE=1 \
-DWITH_READLINE=1 \
-DENABLED_LOCAL_INFILE=1 \
-DMYSQL_DATADIR=/usr/local/mysql/data \
-DMYSQL_USER=mysql \
-DMYSQL_TCP_PORT=3306
(责任编辑:IT) |
------分隔线----------------------------