Cmake编译mysql出错Could NOT find Curses (missing: CURSES_LIBRARY CURSES_INCLUDE_PATH)

问题描述

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

1
2
3
-- 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,

image

解决方法

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

1
2
3
yum –y install libncures5-*
如果存在,find / -name libncurses*
cmake . -DCURSES_LIBRARY=/usr/lib/libncurses.so -DCURSES_INCLUDE_PATH=/usr/include即可解决

坚持原创分享,您的支持将鼓励我继续创作