码迷,mamicode.com
首页 > 数据库 > 详细

Linux 安装 MySQL 出现 Could NOT find Curses (missing CURSES_LIBRARY CURSES_INCLUDE_PATH)

时间:2018-11-05 13:35:40      阅读:164      评论:0      收藏:0      [点我收藏+]

标签:mes   cmake   adl   sage   style   root   ESS   linux 安装   下载   

  通过源码安装 MySQL 数据库,下载了 mysql-5.5.24 的版本,在使用 cmake 时产生了报错,如下:

 1 CMake Error at cmake/readline.cmake:82 (MESSAGE):
 2   Curses library not found.  Please install appropriate package,
 3 
 4       remove CMakeCache.txt and rerun cmake.On Debian/Ubuntu, package name is libncurses5-dev, on Redhat and derivates it is ncurses-devel.
 5 Call Stack (most recent call first):
 6   cmake/readline.cmake:126 (FIND_CURSES)
 7   cmake/readline.cmake:216 (MYSQL_USE_BUNDLED_LIBEDIT)
 8   CMakeLists.txt:250 (MYSQL_CHECK_READLINE)
 9 
10 -- Configuring incomplete, errors occurred!

 

  解决方法:

1 [root@localhost mysql-5.5.24]# rm CMakeCache.txt
2 [root@localhost mysql-5.5.24]# yum install ncurses-devel
3 [root@localhost mysql-5.5.24]# yum install bison
4 [root@localhost mysql-5.5.24]# make
5 [root@localhost mysql-5.5.24]# make install

 

  安装 ncurses 成功后,再次进行 cmake 就可以了。

Linux 安装 MySQL 出现 Could NOT find Curses (missing CURSES_LIBRARY CURSES_INCLUDE_PATH)

标签:mes   cmake   adl   sage   style   root   ESS   linux 安装   下载   

原文地址:https://www.cnblogs.com/tosser/p/9906164.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!