源码安装mysql5.5出现Could NOT find Curses (missing CURSES_LIBRARY

cmake . \
-DCMAKE_INSTALL_PREFIX=/opt/mysql \
-DMYSQL_USER=mysql \
-DWITH_INNOBASE_STORAGE_ENGINE=1 \
-DDEFAULT_CHARSET=utf8 \
-DDEFAULT_COLLATION=utf8_general_ci \
-LH

    

    执行cmake出现Could NOT find Curses (missing: CURSES_LIBRARY CURSES_INCLUDE_PATH)错误,原因是有一些rpm包没有安装。解决办法:

rm CMakeCache.txt
yum install ncurses-devel
yum install bison

    然后重新执行cmake命令。

你可能感兴趣的:(mysql,database)