We will install llvm-toolset-7 on Centos in this article. When installing PostgreSQL, especially when you want to install the devel package, the llvm-toolset-7 package must be installed.
if you didnt install this package you may see below error when trying to install PostgreSQL.
Error: Package: postgresql11-devel-11.8-1PGDG.rhel7.x86_64 (pgdg11)
Requires: llvm-toolset-7-clang >= 4.0.1
First, we install the following repo.
1 | yum install centos-release-scl-rh -y |
We install the llvm-toolset-7 and devtoolset-7 packages in our repo.
1 | yum install devtoolset-7 llvm-toolset-7 -y |
After installing the above packages, the llvm issue will be resolved.