背景:下载了cmake-3.10.0-rc4.tar.gz解压编译的cmake,过程没提示出错原因,在编译x265的时候提示ccmake找不到。百度找不到原因所在,后面翻到国外网站查到了原因。
原因:Curses libraries were not found. Curses GUI for CMake will not be built.这句是查到人所遇到的。因为ccmake依赖于libncurses,编译的时候虽然没出错,只是一个提示,我就没多留个心眼去看。
解决办法:编译cmake前安装一下ncurses。
yum install ncurses-devel
然后重新执行以下几步就有ccmake了。
./bootstrap
gmake
gmake install