CentOS7安装llvm-toolset-7-clang

CentOS7安装llvm-toolset-7-clang

方法1:安装postgresql的devel会顺带安装

点击查看代码
yum install epel-release //可以不用

yum install centos-release-scl-rh

yum isntall postgresqlxx-devel-xx.xx

方法2:通过buildlogs.centos.orgyum源进行安装

点击查看代码
#1.先写入yum源
cat << EOF > /etc/yum.repos.d/c7-devtoolset-7-x86_64.repo
[c7-devtoolset-7]
name=c7-devtoolset-7
baseurl=https://buildlogs.centos.org/c7-devtoolset-7.x86_64/
gpgcheck=0
enabled=1
 
[c7-llvm-toolset-7]
name=c7-llvm-toolset-7
baseurl=https://buildlogs.centos.org/c7-llvm-toolset-7.x86_64/
gpgcheck=0
enabled=1
 
[fedoraproject-epel-7]
name=fedoraproject-epel-7
baseurl=https://download-ib01.fedoraproject.org/pub/epel/7/x86_64/
gpgcheck=0
enabled=1
EOF
 
#2.直接通过yum安装即可
yum install -y llvm5.0-devel llvm-toolset-7-clang
posted @ 2022-06-09 15:51  烽火三月  阅读(2385)  评论(1编辑  收藏  举报