在red hat enterprise linux server
release 5.7 上用源码安装mysql-5.6.23时,遇到了" remove cmakecache.txt and rerun
cmake.on debian/ubuntu, package name is libncurses5-dev, on redhat and
derivates it is ncurses-devel."错误,如下所示
[root@db-server 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 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)
按
照错误提示,debian/ubuntu下需要安装libncurses5-dev;redhat下需要安装ncurses-devel
,检查是否安装了ncurses包,如下所示,已经安装了ncurses-5.5-24.20060715,但是缺少ncurses-devel包。
安装了ncurses-devel包后,删除cmakecache.txt,然后重新编译,编译成功,问题解决!