Mysql安裝過程中CMAKE編譯出錯

hunterjoy發表於2015-05-24
問題現象: 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/,如需轉載,請註明出處,否則將追究法律責任。

相關文章