gpt4 book ai didi

PHP 警告 : PHP Startup: Unable to load dynamic library 'intl' undefined symbol: __cxa_throw_bad_array_new_length

转载 作者:太空宇宙 更新时间:2023-11-03 17:16:54 26 4
gpt4 key购买 nike

我最近更新了 php,但现在我无法摆脱这个警告。也不能回退版本。我正在运行 CentOS Linux 版本 7.7.1908 (Core)。如何降级到较低版本?

# php -v
PHP Warning: PHP Startup: Unable to load dynamic library 'intl' (tried: /usr/lib64/php/modules/intl (/usr/lib64/php/modules/intl: cannot open shared object file: No such file or directory), /usr/lib64/php/modules/intl.so (/usr/lib64/php/modules/intl.so: undefined symbol: __cxa_throw_bad_array_new_length)) in Unknown on line 0
PHP 7.4.0RC3 (cli) (built: Oct 1 2019 08:30:29) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0-dev, Copyright (c) Zend Technologies

已安装 intl 模块:

#yum list installed
php-intl.x86_64 7.4.0~RC3-5.el7.remi @remi-modular

如果我尝试降级,我会遇到很多错误,据我所知,有必要列出所有要降级的依赖项,例如 php-common、php-cli?

# yum downgrade php
Error: Package: php-7.3.12-1.el7.remi.x86_64 (remi-php73)
Need: php-common(x86-64) = 7.3.12-1.el7.remi
Installed: php-common-7.4.0~RC3-5.el7.remi.x86_64 (@remi-modular)
php-common(x86-64) = 7.4.0~RC3-5.el7.remi
Available: php-common-5.4.16-46.el7.x86_64 (base)
php-common(x86-64) = 5.4.16-46.el7
Available: php-common-5.4.16-46.1.el7_7.x86_64 (updates)
php-common(x86-64) = 5.4.16-46.1.el7_7
Available: php-common-5.4.45-17.el7.remi.x86_64 (remi)
php-common(x86-64) = 5.4.45-17.el7.remi
Available: php-common-5.4.45-18.el7.remi.x86_64 (remi)
php-common(x86-64) = 5.4.45-18.el7.remi
Available: php-common-5.5.38-11.el7.remi.x86_64 (remi-php55)
php-common(x86-64) = 5.5.38-11.el7.remi
Available: php-common-5.5.38-12.el7.remi.x86_64 (remi-php55)
php-common(x86-64) = 5.5.38-12.el7.remi
Available: php-common-5.6.40-13.el7.remi.x86_64 (remi-php56)
php-common(x86-64) = 5.6.40-13.el7.remi
Available: php-common-5.6.40-14.el7.remi.x86_64 (remi-php56)
php-common(x86-64) = 5.6.40-14.el7.remi
Available: php-common-7.2.24-1.el7.remi.x86_64 (remi-php72)
php-common(x86-64) = 7.2.24-1.el7.remi
Available: php-common-7.2.25-1.el7.remi.x86_64 (remi-php72)
php-common(x86-64) = 7.2.25-1.el7.remi
Available: php-common-7.3.11-1.el7.remi.x86_64 (remi-php73)
php-common(x86-64) = 7.3.11-1.el7.remi
Available: php-common-7.3.12-1.el7.remi.x86_64 (remi-php73)
php-common(x86-64) = 7.3.12-1.el7.remi
Error: Package: php-7.3.12-1.el7.remi.x86_64 (remi-php73)
Need: php-cli(x86-64) = 7.3.12-1.el7.remi
Installed: php-cli-7.4.0~RC3-5.el7.remi.x86_64 (@remi-modular)

最佳答案

参见 cant install php-devel for php 7.4.1特别是关于存储库。

你必须降级“所有”php 包,所以简单的方法是使用“yum distro-sync”。

另请注意,RC3遇到的这个老问题已经修复了很长时间,7.4.0稳定版不受影响。

关于PHP 警告 : PHP Startup: Unable to load dynamic library 'intl' undefined symbol: __cxa_throw_bad_array_new_length,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59334976/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com