Cmake编译mysql出错Could NOT find Curses (missing: CURSES_LIBR

问题描述:

        利用Cmake 编译mysql-5.5.8版本时,出现

-- Could NOT find Curses  (missing:  CURSES_LIBRARY CURSES_INCLUDE_PATH) 
CMake Error at cmake/readline.cmake:82 (MESSAGE): 
  Curses library not found.  Please install appropriate package,

错误

 

Cmake编译mysql出错Could NOT find Curses (missing: CURSES_LIBR 

解决方法:

显示缺少libcurse library,建议安装libncurses5-dev包

yum –y install libncures5-*

如果存在,find /  -name libncurses*

cmake . -DCURSES_LIBRARY=/usr/lib/libncurses.so -DCURSES_INCLUDE_PATH=/usr/include即可解决

 

本文转自    geekwolf   51CTO博客,原文链接:http://blog.51cto.com/linuxgeek/997907



上一篇:Scala之List,Set及Map基本操作


下一篇:使用Docker 实现微服务并搭建博客,一文全掌握