簡體   English   中英

在 RedHat 7.9 和 php 7.2 上安裝 php-mbstring 模塊時出現依賴錯誤

[英]Dependency error when install php-mbstring module on RedHat 7.9 and php 7.2

在 centos (7.6) 上,我有一個腳本來使用 yum 工具和 remi-repo 部署一組 php 依賴項。 我需要在 redhat (7.9) 上遷移此安裝集。 在這個發行版上,我在安裝 php-mbdstring 模塊期間遇到了這個問題。

缺少 lib libonig.so.105()(64 位) 我沒有找到任何可以明確解決此依賴關系的內容。 我嘗試安裝 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)

libonig.so.105()(64bit)由包oniguruma5phpremiremi-safe存儲庫中提供。

顯然,你沒有啟用。 對於您的用例,我建議啟用remi-safe (默認情況下啟用它,您可能錯誤地禁用了它):

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

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM