編譯mysql出現CMake Error at cmake/readline.cmake:83 (MESSAGE)
阿新 • • 發佈:2019-02-13
-- Could NOT find Curses (missing: CURSES_LIBRARY CURSES_INCLUDE_PATH)
CMake Error at cmake/readline.cmake:83 (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.
Call Stack (most recent call first):
cmake/readline.cmake:127 (FIND_CURSES)
cmake/readline.cmake:217 (MYSQL_USE_BUNDLED_LIBEDIT)
CMakeLists.txt:257 (MYSQL_CHECK_READLINE)
-- Configuring incomplete, errors occurred!
該報錯原因是未安裝ncurses-devel,執行下面命令
第一步:安裝
#yum -y install ncurses-devel
第二步:刪除CMakeCache.txt
通過find命令找到所有CMakeCache.txt文件的位置
#find / -name CMakeCache.txt
然後全部刪除: # 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就OK了。
該報錯原因是未安裝ncurses-devel,執行下面命令
然後全部刪除: # 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就OK了。