问题描述:

        利用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_mysql 

解决方法:

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

yum –y install libncures5-*

如果存在,find /  -name libncurses*

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