安装mysql5.5时候的报错解决办法:

时间:2024-01-18 14:48:08

每次安装mysql5.5的时候总会报出一下错误:

-- Could NOT find OpenSSL (missing: OPENSSL_LIBRARIES OPENSSL_INCLUDE_DIR)
-- 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:118 (FIND_CURSES)
cmake/readline.cmake:214 (MYSQL_USE_BUNDLED_READLINE)
CMakeLists.txt:257 (MYSQL_CHECK_READLINE) -- Configuring incomplete, errors occurred!

解决办法:

删除刚才编译生成的 CMakeCache.txt 文件:
rm -f CMakeCache.txt

 安装 ncurses-devel  libaio-devel包

yum install ncurses-devel libaio-devel -y

  最后重新编译即可。