ubuntu 16.04离线安装cmake安装记录
下载
./bootstrap
make
make install
3.22.2安装出现的问题
错误1 openssl/des.h 找不见
sudo apt-get install libssl-dev
错误2 sys/random.h 找不见
我这块提示为Utilities/cmexpat/lib/xmlparse.c
中找不见这个头,那就换个头
#include <sys/random.h>
to
#include </usr/include/linux/random.h>
类似问题地址
修改后编译会出现 getrandom未定义的引用
的问题,查阅貌似是内核版本的问题,因为显卡的问题,我不得不降低版本安装了问题说明连接
降低至3.15安装
下载地址
继续安装ok
./bootstrap
make
make install
总结
如果版本不对尝试降低版本吧