When installing MySQL-5.6.23 with source on red Hat Enterprise Linux Server Release 5.7, you encountered a "remove CMakeCache.txt and rerun CMake. On Debian/ubuntu, package name was Libncurses5-dev, on Redhat and derivates it was ncurses-devel. " Error, as shown below
[Email protected] mysql-5.6.23]# cmake./-dcmake_install_prefix=/usr/local/mysql-dmysql_datadir=/usr/local/mysql/ Data
.........................
--Check size of wctype_t
--Check size of Wctype_t-done
--Check size of wint_t
--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 the appropriate package,
Remove CMakeCache.txt and rerun CMake. On Debian/ubuntu, package name was Libncurses5-dev, on Redhat and derivates it was 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)
Follow the error prompts, Debian/ubuntu need to install libncurses5-dev;redhat under need to install Ncurses-devel, check whether the ncurses package is installed, as shown below, NCURSES-5.5-24.20060715 is already installed, but the Ncurses-devel package is missing.
[[email protected] Server] # Rpm-qa | grep ncurses
ncurses-5.5-24.20060715
ncurses-5.5-24.20060715
[[email protected] Server] # ls ncurses*
ncurses-5.5-24.20060715.i386.rpm ncurses-devel-5.5-24.20060715.i386.rpm
ncurses-5.5-24.20060715.x86_64.rpm ncurses-devel-5.5-24.20060715.x86_64.rpm
[[email protected] Server]
Warning:ncurses-devel-5.5-24.20060715.x86_64.rpm:header V3 DSA Signature:nokey, key ID 37017186
########################################### [100%]
########################################### [100%]
After installing the Ncurses-devel package, remove the CMakeCache.txt, then recompile, compile successfully, solve the problem!
[[email protected] mysql-5.6.23]
Rm:remove regular file ' CMakeCache.txt '? Yes
[Email protected] mysql-5.6.23]# CMake. -dcmake_install_prefix=/usr/local/mysql-dmysql_datadir=/usr/local/mysql/data-ddefault_ Charset=utf8-ddefault_collation=utf8_general_ci-dextra_charsets=all-denabled_local_infile=1
Linux MySQL source installation missing Ncurses-devel package