在源码安装mysql5.5时,
错误:-- 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...
解决办法:1. yum安装libcurses-devel包;
2.find /usr -name libncurses*找到包,/usr/lib/libcurses.so
/usr/lib/libcursesw.so
3.确实查找到这个目录,用-D参数定义宏,指定头文件和库的所在目录
cmake . -DCURSES_LIBRARY=/usr/lib/libncurses.so -DCURSES_INCLUDE_PATH=/usr/include
成功!
最后make && make install
错误:-- 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...
解决办法:1. yum安装libcurses-devel包;
2.find /usr -name libncurses*找到包,/usr/lib/libcurses.so
/usr/lib/libcursesw.so
3.确实查找到这个目录,用-D参数定义宏,指定头文件和库的所在目录
cmake . -DCURSES_LIBRARY=/usr/lib/libncurses.so -DCURSES_INCLUDE_PATH=/usr/include
成功!
最后make && make install
编辑回复