首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在CentOS 6和Nginx上安装Xcache?

如何在CentOS 6和Nginx上安装Xcache?
EN

Server Fault用户
提问于 2013-08-18 12:15:04
回答 1查看 2.4K关注 0票数 0

我买了一个新的VPS,我不是linux的怪人。我已经在CentOS 6上安装了LEMP堆栈,我只是尝试在我的VPS上安装Xcache。我使用了下面的命令来安装Xcache,但是它显示了一个错误。

用于安装Xcache的命令。

代码语言:javascript
复制
yum install php-xcache xcache-admin

我发现的错误是:

代码语言:javascript
复制
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.san.fastserv.com
 * epel: mirrors.kernel.org
 * extras: mirror.pac-12.org
 * updates: mirrors.easynews.com
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php-xcache.x86_64 0:3.0.2-1.el6 will be installed
--> Processing Dependency: php(zend-abi) = 20090626 for package: php-xcache-3.0.2-1.el6.x86_64
--> Processing Dependency: php(api) = 20090626 for package: php-xcache-3.0.2-1.el6.x86_64
---> Package xcache-admin.noarch 0:3.0.2-1.el6 will be installed
--> Processing Dependency: mod_php for package: xcache-admin-3.0.2-1.el6.noarch
--> Processing Dependency: httpd for package: xcache-admin-3.0.2-1.el6.noarch
--> Running transaction check
---> Package httpd.x86_64 0:2.2.15-29.el6.centos will be installed
---> Package php.x86_64 0:5.3.3-23.el6_4 will be installed
--> Processing Dependency: php-common(x86-64) = 5.3.3-23.el6_4 for package: php-5.3.3-23.el6_4.x86_64
--> Processing Dependency: php-cli(x86-64) = 5.3.3-23.el6_4 for package: php-5.3.3-23.el6_4.x86_64
---> Package php-xcache.x86_64 0:3.0.2-1.el6 will be installed
--> Processing Dependency: php(zend-abi) = 20090626 for package: php-xcache-3.0.2-1.el6.x86_64
--> Processing Dependency: php(api) = 20090626 for package: php-xcache-3.0.2-1.el6.x86_64
--> Running transaction check
---> Package php.x86_64 0:5.3.3-23.el6_4 will be installed
--> Processing Dependency: php-common(x86-64) = 5.3.3-23.el6_4 for package: php-5.3.3-23.el6_4.x86_64
---> Package php-cli.x86_64 0:5.3.3-23.el6_4 will be installed
--> Processing Dependency: php-common(x86-64) = 5.3.3-23.el6_4 for package: php-cli-5.3.3-23.el6_4.x86_64
---> Package php-xcache.x86_64 0:3.0.2-1.el6 will be installed
--> Processing Dependency: php(zend-abi) = 20090626 for package: php-xcache-3.0.2-1.el6.x86_64
--> Processing Dependency: php(api) = 20090626 for package: php-xcache-3.0.2-1.el6.x86_64
--> Finished Dependency Resolution
Error: Package: php-xcache-3.0.2-1.el6.x86_64 (epel)
           Requires: php(api) = 20090626
           Installed: php-common-5.4.17-2.el6.remi.x86_64 (@remi)
               php(api) = 20100412-x86-64
           Available: php-common-5.3.3-22.el6.x86_64 (base)
               php(api) = 20090626
           Available: php-common-5.3.3-23.el6_4.x86_64 (updates)
               php(api) = 20090626
Error: Package: php-xcache-3.0.2-1.el6.x86_64 (epel)
           Requires: php(zend-abi) = 20090626
           Installed: php-common-5.4.17-2.el6.remi.x86_64 (@remi)
               php(zend-abi) = 20100525-x86-64
           Available: php-common-5.3.3-22.el6.x86_64 (base)
               php(zend-abi) = 20090626
           Available: php-common-5.3.3-23.el6_4.x86_64 (updates)
               php(zend-abi) = 20090626
Error: Package: php-cli-5.3.3-23.el6_4.x86_64 (updates)
           Requires: php-common(x86-64) = 5.3.3-23.el6_4
           Installed: php-common-5.4.17-2.el6.remi.x86_64 (@remi)
               php-common(x86-64) = 5.4.17-2.el6.remi
           Available: php-common-5.3.3-22.el6.x86_64 (base)
               php-common(x86-64) = 5.3.3-22.el6
           Available: php-common-5.3.3-23.el6_4.x86_64 (updates)
               php-common(x86-64) = 5.3.3-23.el6_4
Error: Package: php-5.3.3-23.el6_4.x86_64 (updates)
           Requires: php-common(x86-64) = 5.3.3-23.el6_4
           Installed: php-common-5.4.17-2.el6.remi.x86_64 (@remi)
               php-common(x86-64) = 5.4.17-2.el6.remi
           Available: php-common-5.3.3-22.el6.x86_64 (base)
               php-common(x86-64) = 5.3.3-22.el6
           Available: php-common-5.3.3-23.el6_4.x86_64 (updates)
               php-common(x86-64) = 5.3.3-23.el6_4
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

请帮助我如何在我的VPS上安装Xcache。

EN

回答 1

Server Fault用户

发布于 2013-08-19 06:53:03

问题求解

我的问题是:我在配置新的VPS时出错了。我发现我试图使用EPEL的回购在我的VPS上安装Xcache。现在,我使用RPM的存储库安装了Xcache。造成整个问题的原因是我使用了RPM的存储库来安装php-5.4.17-2.el6.remi.x86_64。因为我使用RPM的repo来安装php,所以我需要同样的方法来安装Xcache。

下面是我用来在CentOS驱动的VPS中安装Xcache的代码

代码语言:javascript
复制
rpm -Uvh http://rpms.famillecollet.com/enterprise/6/remi/x86_64/php-xcache-3.0.3-1.el6.remi.x86_64.rpm

我从命令行得到以下响应:

代码语言:javascript
复制
Preparing...                ########################################### [100%]   
1:php-xcache-3.0.3-1.el6.remi.x86_64    ########################################### [100%]

最后,它现在起作用了。

票数 0
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/531807

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档