Could NOT find Curses (missing: CURSES_LIBRARY CURSES_INCLUDE_PATH)

分类: SQL/NoSQL,服务器  • 发布时间: 2015-04-21 14:16:50  • 浏览量:13644

在fedora21上编译安装mysql5.6.23时出现了以下错误:

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:409 (MYSQL_CHECK_EDITLINE)


-- Configuring incomplete, errors occurred!
See also "/usr/local/src/mysql-5.6.23/CMakeFiles/CMakeOutput.log".
See also "/usr/local/src/mysql-5.6.23/CMakeFiles/CMakeError.log".

解决方法:

第一种方法:直接执行以下命令即可

yum -y install ncurses-devel

第二种方法:去官网下载源码包,自己编译安装(安装过程这里不讲了)

官网地址:http://www.gnu.org/software/ncurses/

源码地址:ftp://invisible-island.net/ncurses/ncurses.tar.gz



文章标签: mysql, 编译, fedora, ncurses
用户评论:
  • 游客25259 2018-08-28 12:09:34

    打开支付宝首页搜索“527479816”,即可领红包

  • 游客81291 2018-09-10 16:14:33

    https://promotion.aliyun.com/ntms/act/vm/aliyun-group/buy.html?group=235V3RKPXO