Could NOT find Curses (missing: CURSES_LIBRARY CURSES_INCLUDE_PATH)

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

在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
用户评论:
  • 游客62314 2018-10-26 09:12:44

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

  • 游客61253 2018-12-03 10:39:58

    [红包]支付宝大额红包! 瓜分15亿!打开支付宝首页搜数字“打开支付宝首页搜索“527479816” 立即领红包” 立即领取。昨天领到几块甚至几十块的人超级多,快试试吧。~[礼物]记得收藏,红包每天都可以领!