天天看点

cmake 安装mysql 报错_安装mysql5.5时cmake报错

当执行cmake .,出现下面报错

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

- Could NOT find Curses  (missing:

CURSES_LIBRARY CURSES_INCLUDE_PATH)

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:269 (MYSQL_CHECK_READLINE)

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

根据错误所提示的信息,下载curses,并安装它,果然错误解决。

# wget http://ftp.gnu.org/pub/gnu/ncurses/ncurses-5.9.tar.gz

# tar -xzf ncurses-5.9.tar.gz

# ./configure

# make && make install