该报错原因是未安装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。