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

  通过源码安装 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 就可以了。

猜你喜欢

转载自www.cnblogs.com/tosser/p/9906164.html
今日推荐