CentOS6.6-MySQL报Curses library not found

cmake . -DCMAKE_INSTALL_PREFIX=/application/mysql-5.6.40 \
> -DMYSQL_DATADIR=/application/mysql-5.6.40/data \
> -DMYSQL_UNIX_ADDR=/application/mysql-5.6.40/tmp/mysql.sock \
> -DDEFAULT_CHARSET=utf8 \
> -DDEFAULT_COLLATION=utf8_general_ci \
> -DWITH_EXTRA_CHARSETS=all \
> -DWITH_INNOBASE_STORAGE_ENGINE=1 \
> -DWITH_FEDERATED_STORAGE_ENGINE=1 \
> -DWITH_BLACKHOLE_STORAGE_ENGINE=1 \
> -DWITHOUT_EXAMPLE_STORAGE_ENGINE=1 \
> -DWITH_ZLIB=bundled \
> -DWITH_SSL=bundled \
> -DENABLED_LOCAL_INFILE=1 \
> -DWITH_EMBEDDED_SERVER=1 \
> -DENABLE_DOWNLOADS=1 \
> -DWITH_DEBUG=0
-- Running cmake version 2.8.12.2
-- MySQL 5.6.40
-- Packaging as: mysql-5.6.40-Linux-x86_64
-- HAVE_VISIBILITY_HIDDEN
-- HAVE_VISIBILITY_HIDDEN
-- HAVE_VISIBILITY_HIDDEN
-- Could NOT find Curses (missing: CURSES_LIBRARY CURSES_INCLUDE_PATH)
CMake Error at cmake/readline.cmake:85 (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:128 (FIND_CURSES)
cmake/readline.cmake:218 (MYSQL_USE_BUNDLED_EDITLINE)
CMakeLists.txt:448 (MYSQL_CHECK_EDITLINE)


-- Configuring incomplete, errors occurred!
See also "/home/miss/tools/mysql-5.6.40/CMakeFiles/CMakeOutput.log".
See also "/home/miss/tools/mysql-5.6.40/CMakeFiles/CMakeError.log".



解决方法:

cd /home/miss/tools/mysql-5.6.40

rm CMakeCache.txt

posted @ 2019-03-24 23:42  东方无解  阅读(336)  评论(0编辑  收藏  举报