CMake Error: Curses library not found. Please install appropriate package

时间:2021-12-24 04:50:26

编译安装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.
      
解决办法:
rm -f CMakeCache.txt
yum -y install ncurses-devel