linux安裝mysql出現Could NOT find Curses (missing CURSES_LIBRARY CURSES_INCLUDE_PATH),提示解決方法

進入mysql目錄mysql

[root@localhost software]# cd mysql-5.6.19sql

[root@localhost mysql-5.5.11]# cmake .app

出現如下錯誤提示:ui

-- Could NOT find Curses (missing:  CURSES_LIBRARY CURSES_INCLUDE_PATH)
CMake Error at cmake/readline.cmake:82 (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:216 (MYSQL_USE_BUNDLED_LIBEDIT)
  CMakeLists.txt:250 (MYSQL_CHECK_READLINE)es5

 

-- Configuring incomplete, errors occurred!rem

解決方法:it

[root@localhost mysql-5.5.11]# rm CMakeCache.txt
[root@localhost mysql-5.5.11]# yum install ncurses-devel
Warning: Bison executable not found in PATH
-- Configuring done
-- Generating done
-- Build files have been written to: /software/mysql-5.5.11編譯

[root@localhost mysql-5.5.11]# yum install bisontable

[root@localhost mysql-5.5.11]# make && make installclass

編譯完成。

相關文章
相關標籤/搜索