编译安装cmake

CMake
cmake这个版本,在Ubuntu直接用apt get install cmake 版本都不够,可以用apt search cmake看看版本有没有,没有的话就在链接里下吧,下最新的稳定版本,是个压缩包,解压,根据README指导的操作,执行脚本sudo . bootstrap,sudo make,sudo make install,看版本cmake --version

报错:

编译时提示

Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the system variable OPENSSL_ROOT_DIR (missing: OPENSSL_LIBRARIES OPENSSL_INCLUDE_DIR) 

的解决方法:sudo apt-get install libssl-dev

你可能感兴趣的:(Ubuntu)