Mysql安装过程中CMAKE编译出错

问题现象: Mysql安装过程中CMAKE编译出错
环境Centos7.1+mysql5.6.21


[root@linfytest3 mysql-5.6.21]# cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql
-- Running cmake version 3.0.2
-- MySQL 5.6.21
-- Packaging as: mysql-5.6.21-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:202 (MYSQL_USE_BUNDLED_EDITLINE)
  CMakeLists.txt:427 (MYSQL_CHECK_EDITLINE)

-- Configuring incomplete, errors occurred!
See also "/soft/mysql-5.6.21/CMakeFiles/CMakeOutput.log".
See also "/soft/mysql-5.6.21/CMakeFiles/CMakeError.log".

出错原因:没有安装包 ncurses-devel



解决办法:

[root@linfytest3 Packages]# ls -ltr ncurses-devel*
-rw-rw-r--. 1 linfy linfy 729820 Jul  4  2014 ncurses-devel-5.9-13.20130511.el7.x86_64.rpm
[root@linfytest3 Packages]# rpm -ivh ncurses-devel-5.9-13.20130511.el7.x86_64.rpm
warning: ncurses-devel-5.9-13.20130511.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
Preparing...                          ################################# [100%]
Updating / installing...
   1:ncurses-devel-5.9-13.20130511.el7################################# [100%]

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/543979/viewspace-1669265/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/543979/viewspace-1669265/

你可能感兴趣的:(Mysql安装过程中CMAKE编译出错)