CMake Error at cmake/readline.cmake:85 (MESSAGE): Curses library not found.

weixin_34378969發表於2017-02-12
2211700-946c7a9aa4dc9afe.png
Paste_Image.png

該報錯原因是未安裝ncurses-devel,安裝

yum -y install ncurses-devel

刪除CMakeCache.txt
find / -name CMakeCache.txt

rm -rf /usr/local/src/cmake-2.8.8/Tests/Complex/Cache/CMakeCache.txt

rm -rf /usr/local/src/cmake-2.8.8/Tests/ComplexOneConfig/Cache/CMakeCache.txt

rm -rf /usr/local/src/cmake-2.8.8/Tests/ComplexRelativePaths/Cache/CMakeCache.txt

rm -rf /usr/local/src/mysql-5.6.25/CMakeCache.txt

全部刪除後再重新cmake,OK。