【问题标题】:Dependency error when install php-mbstring module on RedHat 7.9 and php 7.2在 RedHat 7.9 和 php 7.2 上安装 php-mbstring 模块时出现依赖错误
【发布时间】:2023-03-31 08:32:01
【问题描述】:

在 centos (7.6) 上,我有一个脚本可以使用 yum 工具和 remi-repo 部署一组 php 依赖项。 我需要在 redhat (7.9) 上迁移此安装集。在这个发行版上,我在安装 php-mbdstring 模块时遇到了这个问题。

lib libonig.so.105()(64bit) 丢失。我没有找到任何可以清楚地解决此依赖关系的内容。我尝试安装 oniguruma( 和 -devel) 但 lib (/usr/lib64/libonig.so.5) 版本与依赖项要求不匹配。 这里是 yum install 命令的输出。

---> Package php-mbstring.x86_64 0:7.2.34-1.el7.remi will be installed
Checking deps for php-mbstring.x86_64 0:7.2.34-1.el7.remi - u
looking for ('php-common(x86-64)', 'EQ', ('0', '7.2.34', '1.el7.remi')) as a requirement of php-mbstring.x86_64 0:7.2.34-1.el7.remi - u
looking for ('libc.so.6(GLIBC_2.14)(64bit)', None, (None, None, None)) as a requirement of php-mbstring.x86_64 0:7.2.34-1.el7.remi - u
looking for ('rtld(GNU_HASH)', None, (None, None, None)) as a requirement of php-mbstring.x86_64 0:7.2.34-1.el7.remi - u
looking for ('libpthread.so.0()(64bit)', None, (None, None, None)) as a requirement of php-mbstring.x86_64 0:7.2.34-1.el7.remi - u
looking for ('libonig.so.105()(64bit)', None, (None, None, None)) as a requirement of php-mbstring.x86_64 0:7.2.34-1.el7.remi - u
php-mbstring-7.2.34-1.el7.remi.x86_64 requires: libonig.so.105()(64bit)
--> Processing Dependency: libonig.so.105()(64bit) for package: php-mbstring-7.2.34-1.el7.remi.x86_64
Searching pkgSack for dep: libonig.so.105()(64bit)
--> Finished Dependency Resolution
Dependency Process ending
Error: Package: php-mbstring-7.2.34-1.el7.remi.x86_64 (remi-repo)
           Requires: libonig.so.105()(64bit)

【问题讨论】:

  • 虽然这可能是勉强关于 SO 的主题,但我建议您将这个问题迁移到 superuser.com,在那里您更有可能找到熟悉特定问题的人与 redhat 的包管理器打交道的细微差别

标签: php redhat rpm yum mbstring


【解决方案1】:

libonig.so.105()(64bit)oniguruma5php 包在 remiremi-safe 存储库中提供。

显然,您两者都没有启用。对于您的用例,我建议启用remi-safe(默认启用,您可能错误地禁用了它):

yum install yum-utils
yum-config-manager --enable remi-safe
# dependency should be pulled in without problem:
yum install php-mbstring

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2018-12-16
    • 2012-02-16
    • 1970-01-01
    • 1970-01-01
    • 2015-09-20
    • 2017-01-18
    • 2014-10-18
    • 1970-01-01
    相关资源
    最近更新 更多