安装postgresql报错:Requires: llvm-toolset-7-clang >= 4.0.1
问题重现
安装postgresql12-devel-12.6-1PGDG.rhel7.x86_64时报错:
Error: Package: postgresql12-devel-12.6-1PGDG.rhel7.x86_64 (/postgresql12-devel-12.6-1PGDG.rhel7.x86_64)
Requires: llvm-toolset-7-clang >= 4.0.1
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
问题解决
安装centos-release-scl-rh包即可:
yum install centos-release-scl-rh
Loaded plugins: fastestmirror, versionlock
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
Resolving Dependencies
--> Running transaction check
---> Package centos-release-scl-rh.noarch 0:2-3.el7.centos will be installed
--> Finished Dependency Resolution
Dependencies Resolved
========================================================================================