编译安装mysql出现CMake Error at cmake/readline.cmake:83 (MESSAGE):

 

- 运行cmake版本2.8.12
- MySQL 5.5.38
- 打包为:mysql-5.5.38-Linux-x86_64
- 无法找到Curses(缺少:CURSES_LIBRARY CURSES_INCLUDE_PATH) 
cmake / readline.cmake上的CMake错误:83 (消息):
  找不到Curses库。请安装合适的包装,

 

 

      删除CMakeCache.txt并重新运行cmake.On Debian / Ubuntu,软件包名称为libncurses5-dev,在Redhat上派生它为ncurses-devel。

 

 

调用堆栈(最近一次调用):
  cmake / readline.cmake:127(FIND_CURSES)
  cmake / readline.cmake:217(MYSQL_USE_BUNDLED_LIBEDIT)
  CMakeLists.txt:361(MYSQL_CHECK_READLINE)

 

 

- 配置不完整,发生错误!

编译安装mysql出现CMake Error at cmake/readline.cmake:83 (MESSAGE):_第1张图片

该报错是原因是未安装的ncurses包

执行下面操作

 

#yum -y install ncurses-devel

 

第二步:删除CMakeCache.txt

通过查找命令找到所有CMakeCache.txt文档的位置

#find / -name CMakeCache.txt导出来的/ usr / local / src / cmake-xxxxx全部删除

然后全部删除:

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

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

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

#rm -rf /usr/local/src/mysql-5.5.18/CMakeCache.txt

删除后重新cmake即可!

 

 

 

 

你可能感兴趣的:(SQL,Linux,MySQL从入门到放弃)