编译cmake MySQL 5.6.10报错

具体报错内容如下: [code]-- Running cmake version 2.8.12.2 CMake Warning (dev) at CMakeLists.txt:191 (INCLUDE): Syntax Warning in cmake code at /usr/local/src/mysql-5.6.10/cmake/ssl.cmake:205:55 Argument not separated from preceding token by whitespace. This warning is for project developers. Use -Wno-dev to suppress it. -- MySQL 5.6.10 -- Packaging as: mysql-5.6.10-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: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:126 (FIND_CURSES) cmake/readline.cmake:193 (MYSQL_USE_BUNDLED_LIBEDIT) CMakeLists.txt:325 (MYSQL_CHECK_READLINE) -- Configuring incomplete, errors occurred! See also "/usr/local/src/mysql-5.6.10/CMakeFiles/CMakeOutput.log". See also "/usr/local/src/mysql-5.6.10/CMakeFiles/CMakeError.log".[/code]请哪位大神帮忙看看,遇到过这样的问题吗,如何解决?
已邀请:

Nock - 万物本平等,无奈现实俗!

赞同来自: koyo push

其实警告信息已经提醒你了,不要害怕英文,静心阅读一下:


-- 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.


如上可以看出信息中说的很清楚,找不到Curses,然后告诉你了怎么做,先把cmake的缓存文件CMakeCache.txt删除(rm -rf CMakeCache.txt),然后不同的系统平台安装不同的包

Debian/Ubuntu:
# apt-get install libncurses5-dev -y
RedHat/Centos
# yum -y install ncurses-devel
安装完成后,重新cmake我想就ok了!

要回复问题请先登录注册