还在苦苦敲代码开发APP?你out啦! 试试积木搭建APP吧~

Curses library not found. Please install appropriate package

来源:清泛原创     2016-08-04 18:42:07    人气:     我有话说( 0 人参与)

CentOS安装MySql报错:-- Could NOT find Curses (missing: CURSES_LIBRARY CURSES_INCLUDE_PATH)CMake Error at cmake readli...

CentOS安装MySql报错:
-- 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:325 (MYSQL_CHECK_EDITLINE)
-- Configuring incomplete, errors occurred!
从上面的错误中我们可以很清楚的看到缺少两个依赖包,我们用yum安装一下即可!
# yum install –y openssl openssl-devel ncurses ncurses-devel
下面我们再次编译一下,可能还会报同样的错误,不要着急,删除当前目录下CMakeCache.txt文件并重新编译,再次运行cmake命令就会正常!

Curses

注:本文为本站或本站会员原创优质内容,版权属于原作者及清泛网所有,
欢迎转载,转载时须注明版权并添加来源链接,谢谢合作! (编辑:admin)
分享到: