postgresql - CloudLinux 7.8 错误安装 postgresql 11 需要 : llvm-toolset-7-clang >= 4. 0.1

标签 postgresql centos

我有一台 CloudLinux 7.8(基于 CentOS 7)机器,我正在尝试将 postgresql11-devel 安装到系统上,但由于“llvm-toolset-7-clang >= 4.0.1”而失败。

这是完整的错误

[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
--> Running transaction check
---> Package postgresql11.x86_64 0:11.8-1PGDG.rhel7 will be installed
---> Package postgresql11-devel.x86_64 0:11.8-1PGDG.rhel7 will be installed
--> Processing Dependency: llvm5.0-devel >= 5.0 for package: postgresql11-devel-11.8-1PGDG.rhel7.x86_64
--> Processing Dependency: llvm-toolset-7-clang >= 4.0.1 for package: postgresql11-devel-11.8-1PGDG.rhel7.x86_64
--> Processing Dependency: libicu-devel for package: postgresql11-devel-11.8-1PGDG.rhel7.x86_64
---> Package postgresql11-libs.x86_64 0:11.8-1PGDG.rhel7 will be installed
---> Package postgresql11-server.x86_64 0:11.8-1PGDG.rhel7 will be installed
--> Running transaction check
---> Package libicu-devel.x86_64 0:50.2-4.el7_7 will be installed
---> Package llvm5.0-devel.x86_64 0:5.0.1-7.el7 will be installed
--> Processing Dependency: llvm5.0(x86-64) = 5.0.1-7.el7 for package: llvm5.0-devel-5.0.1-7.el7.x86_64
--> Processing Dependency: libedit-devel for package: llvm5.0-devel-5.0.1-7.el7.x86_64
--> Processing Dependency: libLLVM-5.0.so()(64bit) for package: llvm5.0-devel-5.0.1-7.el7.x86_64
--> Processing Dependency: libLTO.so.5()(64bit) for package: llvm5.0-devel-5.0.1-7.el7.x86_64
---> Package postgresql11-devel.x86_64 0:11.8-1PGDG.rhel7 will be installed
--> Processing Dependency: llvm-toolset-7-clang >= 4.0.1 for package: postgresql11-devel-11.8-1PGDG.rhel7.x86_64
--> Running transaction check
---> Package libedit-devel.x86_64 0:3.0-12.20121213cvs.el7 will be installed
---> Package llvm5.0.x86_64 0:5.0.1-7.el7 will be installed
---> Package llvm5.0-libs.x86_64 0:5.0.1-7.el7 will be installed
---> Package postgresql11-devel.x86_64 0:11.8-1PGDG.rhel7 will be installed
--> Processing Dependency: llvm-toolset-7-clang >= 4.0.1 for package: postgresql11-devel-11.8-1PGDG.rhel7.x86_64
--> Finished Dependency Resolution
Error: Package: postgresql11-devel-11.8-1PGDG.rhel7.x86_64 (pgdg11)
           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

我尝试安装最新的 llvm-toolset-6.0 但找不到它。
[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

更新

尝试只安装 libpqxx-devel 包,但得到相同的错误

更新

不幸的是,这台机器上有 CPanel,这可能会妨碍您。

更新

这是它使用的存储库文件列表
$ 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

添加centos SCL不起作用,但也许cloudlinux有类似的东西,但我不知道它是什么。

最佳答案

点赞Rishitha Minol说,但特定于 CentOS:

yum install centos-release-scl-rh

然后根据需要更新或安装。

找到 here .

关于postgresql - CloudLinux 7.8 错误安装 postgresql 11 需要 : llvm-toolset-7-clang >= 4. 0.1,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61904796/

相关文章:

json - Oracle JSON_TABLE 到 PostgreSQL - 如何从 JSON 列中的第二个分层键进行搜索

java - 如何在Spring boot中禁用扫描@Configuration类

linux - Centos安装Git 1.8.5以上版本

perl - 本地化 $0 后显示原始参数

centos - 如何使用CSF防火墙的CC_DENY和CC_ALLOW

node.js - sequelize 中的一对多自连接中的外键是什么?

python - 如何在 SQLAlchemy 中的文本数组列上创建 GIN 索引(使用 PostgreSQL 和 python)

nginx - Nginx + php-fpm 上的 Roundcube

tomcat - 使用用户帐号启动tomcat时出现异常

sql - postgresql中的唯一随机整数