MySQL 源码编译安装报错 Could NOT find Curses (missing: CURSES_LIBRARY CURSES_INCLUDE_PATH)

报错信息:
-- Check size of wint_t - done
-- Could NOT find Curses  (missing:  CURSES_LIBRARY CURSES_INCLUDE_PATH)
CMake Error at cmake/readline.cmake:85 (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:128 (FIND_CURSES)
  cmake/readline.cmake:202 (MYSQL_USE_BUNDLED_EDITLINE)
  CMakeLists.txt:409 (MYSQL_CHECK_EDITLINE)

-- Configuring incomplete, errors occurred!

解决方法:

  1. yum -y install ncurses-devel

  2. rm -f CMakeCache.txt

  3. 重新编译

你可能感兴趣的:(mysql)