gpt4 book ai didi

PHP 警告 : PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/memcached.so' -/usr/lib64/php/modules/memcached. 所以

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

我正在使用 CentOS 6.5

当我执行此 php -v

我收到以下消息:

PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/memcached.so' - /usr/lib64/php/modules/memcached.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP 5.4.36 (cli) (built: Dec 19 2014 06:28:27)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies

因为这似乎是一个 memcached 错误,当我尝试这个时

yum 安装 memcached.x86_64 php-pecl-memcache.x86_64

我遇到以下提到的错误:

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* rpmforge: mirror.team-cymru.org
drivesrvr | 2.2 kB 00:00
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package memcached.x86_64 0:1.4.4-3.el6 will be installed
--> Processing Dependency: libevent-1.4.so.2()(64bit) for package: memcached-1.4.4-3.el6.x86_64
---> Package php-pecl-memcache.x86_64 0:3.0.5-4.el6 will be installed
--> Processing Dependency: php(zend-abi) = 20090626 for package: php-pecl-memcache-3.0.5-4.el6.x86_64
--> Processing Dependency: php(api) = 20090626 for package: php-pecl-memcache-3.0.5-4.el6.x86_64
--> Running transaction check
---> Package libevent.x86_64 0:1.4.13-4.el6 will be installed
---> Package php-pecl-memcache.x86_64 0:3.0.5-4.el6 will be installed
--> Processing Dependency: php(zend-abi) = 20090626 for package: php-pecl-memcache-3.0.5-4.el6.x86_64
--> Processing Dependency: php(api) = 20090626 for package: php-pecl-memcache-3.0.5-4.el6.x86_64
--> Finished Dependency Resolution
Error: Package: php-pecl-memcache-3.0.5-4.el6.x86_64 (base)
Requires: php(zend-abi) = 20090626
Installed: php-common-5.4.36-1.el6.remi.x86_64 (@remi)
php(zend-abi) = 20100525-x86-64
Available: php-common-5.3.3-38.el6.x86_64 (base)
php(zend-abi) = 20090626
Available: php-common-5.3.3-40.el6_6.x86_64 (updates)
php(zend-abi) = 20090626
Available: php-common-5.3.3-46.el6_6.x86_64 (updates)
php(zend-abi) = 20090626
Error: Package: php-pecl-memcache-3.0.5-4.el6.x86_64 (base)
Requires: php(api) = 20090626
Installed: php-common-5.4.36-1.el6.remi.x86_64 (@remi)
php(api) = 20100412-x86-64
Available: php-common-5.3.3-38.el6.x86_64 (base)
php(api) = 20090626
Available: php-common-5.3.3-40.el6_6.x86_64 (updates)
php(api) = 20090626
Available: php-common-5.3.3-46.el6_6.x86_64 (updates)
php(api) = 20090626
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

最佳答案

您已经从默认情况下未启用的“remi”存储库安装了 php。因此,您需要启用它以安装额外的 PHP 扩展,并具有正确的 ABI 兼容性。

yum --enablerepo=remi install php-pecl-memcache

阅读常见问题解答:http://blog.remirepo.net/pages/English-FAQ#enable

关于PHP 警告 : PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/memcached.so' -/usr/lib64/php/modules/memcached. 所以,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31590677/

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