在 RHEL 7.1 上安装 PostgreSQL 9.6 需要 libsystemd.so

在 RHEL 7.1 上安装 PostgreSQL 9.6 需要 libsystemd.so

在 RHEL 7.1 上使用官方PostgreSQL 开发组yum repo,安装失败,报libsystemd.so需要但是没有安装:

user@host ~ $ sudo yum install postgresql96 postgresql96-devel postgresql96-server

结果是:

Loaded plugins: product-id, subscription-manager, versionlock
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
pgdg96                                                                                                                                                                             | 4.1 kB  00:00:00     
Package postgresql96-9.6.0-1PGDG.rhel7.x86_64 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package postgresql96-devel.x86_64 0:9.6.0-1PGDG.rhel7 will be installed
---> Package postgresql96-server.x86_64 0:9.6.0-1PGDG.rhel7 will be installed
--> Processing Dependency: libsystemd.so.0(LIBSYSTEMD_209)(64bit) for package: postgresql96-server-9.6.0-1PGDG.rhel7.x86_64
--> Processing Dependency: libsystemd.so.0()(64bit) for package: postgresql96-server-9.6.0-1PGDG.rhel7.x86_64
--> Finished Dependency Resolution
Error: Package: postgresql96-server-9.6.0-1PGDG.rhel7.x86_64 (pgdg96)
           Requires: libsystemd.so.0()(64bit)
Error: Package: postgresql96-server-9.6.0-1PGDG.rhel7.x86_64 (pgdg96)
           Requires: libsystemd.so.0(LIBSYSTEMD_209)(64bit)
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

我难道不应该已经libsystemd.so在使用 RHEL 7.x 了吗?

答案1

您至少需要 209 版的 systemd-libs。我认为它只随 Red Hat 7.2 提供。

相关内容