在ubuntu16.04上配置llvm
文章目录
一开始配置的时候,搜了好多教程,但是总会在各种各样的地方卡住,最后自己是用下面的办法配出来的,我也记录了一些用网上的教程碰到问题后我的解决办法。
我是用阿里云的服务器,选择ubuntu16.04的系统。
安装git
apt-get install git
新建文件夹LLVM
mkdir LLVM
cd LLVM
下载llvm
从官网下载太慢了,所以我用清华的镜像
//{reponame}替换为各自仓库的名字
git clone https://mirrors.tuna.tsinghua.edu.cn/git/llvm/{reponame}.git
如果下载过程会因为文件太大或者网速太慢而失败,用以下方法解决(官网下载可能会出现)
git clone时RPC failed; curl 18 transfer closed with outstanding read data remaining
下载llvm
git clone https://mirrors.tuna.tsinghua.e