在centos (7.6)上,我有一个用yum工具和repo部署一组php依赖项的脚本。我需要迁移这个安装设置在一个红帽(7.9)。在这个发行版上,我在安装php-mbdstring模块时遇到了这个问题。
缺少lib libonig.so.105()(64位)。我没有找到任何可以清楚地修复这种依赖关系的东西。我试图安装oniguruma(和-devel),但是lib (/usr/lib 64/libonig.so.5)版本与依赖项需求不匹配。这里是命令的输出。
---> 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)
发布于 2020-10-07 08:52:11
libonig.so.105()(64bit)
由包oniguruma5php
在remi
或remi-safe
存储库中提供。
很明显,你也没有启用。对于您的用例,我建议启用remi-safe
(默认情况下,您可能错误地禁用了它):
yum install yum-utils
yum-config-manager --enable remi-safe
# dependency should be pulled in without problem:
yum install php-mbstring
https://stackoverflow.com/questions/64240264
复制相似问题