事象
$ yum install postgresql12-devel
(中略)
Error: Package: postgresql12-devel-12.3-1PGDG.rhel7.x86_64 (pgdg12)
Requires: llvm-toolset-7-clang >= 4.0.1
Error: Package: postgresql12-devel-12.3-1PGDG.rhel7.x86_64 (pgdg12)
Requires: llvm5.0-devel >= 5.0
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
解決策
- epel-release、centos-release-scl をインストールする
$ yum -y install epel-release centos-release-scl
$ sudo yum-config-manager --add-repo http://mirror.centos.org/centos/7/sclo/x86_64/rh/
$ sudo su -
[centos-sclo-rh]
name=centos-sclo-rh
baseurl=http://mirror.centos.org/centos/7/sclo/x86_64/rh/
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-SCLo
$ sudo curl -L -O https://github.com/sclorg/centos-release-scl/blob/master/centos-release-scl/RPM-GPG-KEY-CentOS-SIG-SCLo --output /etc/pki/rpm-gpg/