我对 VPS 完全陌生,正在尝试在 centos6.5 服务器上安装 php54。
我已将 php 版本升级到 5.4,似乎可以正常工作。目前使用 php5.4.31
但是我现在需要安装 mcrypt。我尝试过:
yum install php-mcrypt
我已经设置了 remi 和 epel 存储库,并且可以进行安装,但出现了依赖性错误:
Loaded plugins: fastestmirror, security
No such command: snstall. Please use /usr/bin/yum --help
[root@XXXX~]# yum install php-mcrypt*
Loaded plugins: fastestmirror, security
Determining fastest mirrors
epel/metalink | 26 kB 00:00
* base: centos.serverspace.co.uk
* epel: mirror.bytemark.co.uk
* extras: mirror.bytemark.co.uk
* rpmforge: www.mirrorservice.org
* updates: centos.hyve.com
base | 3.7 kB 00:00
base/primary_db | 4.4 MB 00:01
epel | 4.4 kB 00:00
epel/primary_db | 6.3 MB 00:00
extras | 3.4 kB 00:00
extras/primary_db | 19 kB 00:00
rpmforge | 1.9 kB 00:00
rpmforge/primary_db | 2.7 MB 00:04
updates | 3.4 kB 00:00
updates/primary_db | 4.7 MB 00:00
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php-mcrypt.x86_64 0:5.3.3-3.el6 will be installed
--> Processing Dependency: php(zend-abi) = 20090626 for package: php-mcrypt-5.3.3- 3.el6.x86_64
--> Processing Dependency: php(api) = 20090626 for package: php-mcrypt-5.3.3-3.el6.x86_64
--> Finished Dependency Resolution
Error: Package: php-mcrypt-5.3.3-3.el6.x86_64 (epel)
Requires: php(zend-abi) = 20090626
Installed: php-common-5.4.31-1.el6.remi.x86_64 (@remi)
php(zend-abi) = 20100525-x86-64
Available: php-common-5.3.3-26.el6.x86_64 (base)
php(zend-abi) = 20090626
Available: php-common-5.3.3-27.el6_5.x86_64 (updates)
php(zend-abi) = 20090626
Available: php-common-5.3.3-27.el6_5.1.x86_64 (updates)
php(zend-abi) = 20090626
Error: Package: php-mcrypt-5.3.3-3.el6.x86_64 (epel)
Requires: php(api) = 20090626
Installed: php-common-5.4.31-1.el6.remi.x86_64 (@remi)
php(api) = 20100412-x86-64
Available: php-common-5.3.3-26.el6.x86_64 (base)
php(api) = 20090626
Available: php-common-5.3.3-27.el6_5.x86_64 (updates)
php(api) = 20090626
Available: php-common-5.3.3-27.el6_5.1.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
我似乎无法安装 5.4 版本的 mcrypt。
任何帮助表示感谢
谢谢
答案1
您安装 PHP 时使用的 remi 存储库已被禁用。请启用它并重试。