解决Could NOT find Curses (missing: CURSES_LIBRARY CURSES_INCLUDE_PATH)

回复 收藏
在源码安装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
         
            
            
2015-09-09 13:12 举报
已邀请:

回复帖子,请先登录注册

退出全屏模式 全屏模式 回复
评分
可选评分理由: