title: CloudLinux 7.8 error installing postgresql 11 Requires: llvm-toolset-7-clang >= 4.0.1
body: <p>I've got a CloudLinux 7.8 (based on CentOS 7) machine and I'm trying to install postgresql11-devel onto the system and it fails due to 'llvm-toolset-7-clang >= 4.0.1'.</p>
  
  <p>Here is the full error</p>
  
  <pre><code>[map7@ded94686 testapp]$ sudo yum install postgresql11 postgresql11-devel postgresql11-libs postgresql11-server
  [sudo] password for map7: 
  Loaded plugins: fastestmirror, rhnplugin, universal-hooks
  This system is receiving updates from CLN.
  Loading mirror speeds from cached hostfile
   * EA4: 101.0.120.94
   * cpanel-addons-production-feed: 101.0.120.94
   * cpanel-plugins: 101.0.120.94
   * cloudlinux-x86_64-server-7: cl.mirror.serversaustralia.com.au
   * epel: fedora.mirror.serversaustralia.com.au
  Resolving Dependencies
  --&gt; Running transaction check
  ---&gt; Package postgresql11.x86_64 0:11.8-1PGDG.rhel7 will be installed
  ---&gt; Package postgresql11-devel.x86_64 0:11.8-1PGDG.rhel7 will be installed
  --&gt; Processing Dependency: llvm5.0-devel &gt;= 5.0 for package: postgresql11-devel-11.8-1PGDG.rhel7.x86_64
  --&gt; Processing Dependency: llvm-toolset-7-clang &gt;= 4.0.1 for package: postgresql11-devel-11.8-1PGDG.rhel7.x86_64
  --&gt; Processing Dependency: libicu-devel for package: postgresql11-devel-11.8-1PGDG.rhel7.x86_64
  ---&gt; Package postgresql11-libs.x86_64 0:11.8-1PGDG.rhel7 will be installed
  ---&gt; Package postgresql11-server.x86_64 0:11.8-1PGDG.rhel7 will be installed
  --&gt; Running transaction check
  ---&gt; Package libicu-devel.x86_64 0:50.2-4.el7_7 will be installed
  ---&gt; Package llvm5.0-devel.x86_64 0:5.0.1-7.el7 will be installed
  --&gt; Processing Dependency: llvm5.0(x86-64) = 5.0.1-7.el7 for package: llvm5.0-devel-5.0.1-7.el7.x86_64
  --&gt; Processing Dependency: libedit-devel for package: llvm5.0-devel-5.0.1-7.el7.x86_64
  --&gt; Processing Dependency: libLLVM-5.0.so()(64bit) for package: llvm5.0-devel-5.0.1-7.el7.x86_64
  --&gt; Processing Dependency: libLTO.so.5()(64bit) for package: llvm5.0-devel-5.0.1-7.el7.x86_64
  ---&gt; Package postgresql11-devel.x86_64 0:11.8-1PGDG.rhel7 will be installed
  --&gt; Processing Dependency: llvm-toolset-7-clang &gt;= 4.0.1 for package: postgresql11-devel-11.8-1PGDG.rhel7.x86_64
  --&gt; Running transaction check
  ---&gt; Package libedit-devel.x86_64 0:3.0-12.20121213cvs.el7 will be installed
  ---&gt; Package llvm5.0.x86_64 0:5.0.1-7.el7 will be installed
  ---&gt; Package llvm5.0-libs.x86_64 0:5.0.1-7.el7 will be installed
  ---&gt; Package postgresql11-devel.x86_64 0:11.8-1PGDG.rhel7 will be installed
  --&gt; Processing Dependency: llvm-toolset-7-clang &gt;= 4.0.1 for package: postgresql11-devel-11.8-1PGDG.rhel7.x86_64
  --&gt; Finished Dependency Resolution
  Error: Package: postgresql11-devel-11.8-1PGDG.rhel7.x86_64 (pgdg11)
             Requires: llvm-toolset-7-clang &gt;= 4.0.1
   You could try using --skip-broken to work around the problem
   You could try running: rpm -Va --nofiles --nodigest
  </code></pre>
  
  <p>I've tried installing the latest llvm-toolset-6.0 but it cannot find it.</p>
  
  <pre><code>[map7@ded94686 testapp]$ sudo yum install llvm-toolset-6.0
  [sudo] password for map7: 
  Loaded plugins: fastestmirror, rhnplugin, universal-hooks
  This system is receiving updates from CLN.
  Loading mirror speeds from cached hostfile
   * EA4: 101.0.120.94
   * cpanel-addons-production-feed: 101.0.120.94
   * cpanel-plugins: 101.0.120.94
   * cloudlinux-x86_64-server-7: cl.mirror.serversaustralia.com.au
   * epel: fedora.mirror.serversaustralia.com.au
  No package llvm-toolset-6.0 available.
  Error: Nothing to do
  </code></pre>
  
  <p><strong>Update</strong></p>
  
  <p>Tried just installing the libpqxx-devel package but get the same error</p>
  
  <p><strong>Update</strong></p>
  
  <p>Unfortunately this machine has CPanel on it, which could be getting in the way.</p>
  
  <p><strong>Update</strong></p>
  
  <p>Here is the list of repository files it uses</p>
  
  <pre><code>$ ls -al /etc/yum.repos.d
  total 124
  drwxr-xr-x.   2 root root  4096 May 20 22:14 .
  drwxr-xr-x. 111 root root 16384 May 21 10:40 ..
  -rw-r--r--    1 root root   329 Apr 23 20:46 centos-extras.repo
  -rw-r--r--    1 root root   755 Apr 16 02:58 cloudlinux-ea4-experimental.repo
  -rw-r--r--    1 root root   660 Apr 16 02:58 cloudlinux-ea4.repo
  -rw-r--r--    1 root root  7636 Apr 16 02:58 cloudlinux-ea4-rollout.repo
  -rw-r--r--    1 root root   734 Apr 16 02:58 cloudlinux-ea4-testing.repo
  -rw-r--r--    1 root root   232 Apr 23 20:46 cloudlinux-imunify360.repo
  -rw-r--r--    1 root root  2939 May 20 14:08 cloudlinux.repo
  -rw-r--r--    1 root root  2937 May 20 14:08 cloudlinux.repo~
  -rw-r--r--    1 root root  7474 Apr 23 20:46 cloudlinux-rollout.repo
  -rw-r--r--    1 root root   257 May 19 22:17 cPAddons.repo
  -rw-------    1 root root   241 May 20 22:14 cpanel-plugins.repo
  -rw-r--r--    1 root root   234 May 18 12:53 dell-system-update_os_dependent.repo
  -rw-r--r--    1 root root   263 May 18 12:53 dell-system-update_os_independent.repo
  -rw-r--r--    1 root root   204 Aug  8  2015 EA4.repo
  -rw-r--r--    1 root root  1050 Sep 18  2019 epel.repo
  -rw-r--r--    1 root root  1149 Sep 18  2019 epel-testing.repo
  -rw-r--r--    1 root root   120 May 15 00:45 kernelcare.repo
  -rw-r--r--    1 root root  1838 Apr 27  2017 mysql-community.repo
  -rw-r--r--    1 root root  1885 Apr 27  2017 mysql-community-source.repo
  -rw-r--r--    1 root root   474 Apr 25  2018 nodesource-el7.repo
  -rw-r--r--    1 root root  1331 May 18 12:50 puppetlabs.repo
  -rw-r--r--    1 root root   130 May 20 10:06 yarn.repo
  -rw-r--r--    1 root root   229 May 18 12:56 Zabbix_7_x86_64.repo
  -rw-r--r--    1 root root   258 May 18 12:56 Zabbix_nonsupported_7_x86_64.repo
  </code></pre>
  
  <p>Adding the centos SCL doesn't work, but maybe there is something similar for cloudlinux, but I don't know what it is.</p>