gpt4 book ai didi

php - 在 Centos 6.5 上安装 Mycrypt

转载 作者:行者123 更新时间:2023-12-04 19:38:12 25 4
gpt4 key购买 nike

我需要安装密室为了运行php artisan serve在我的 Centos 6.5 上。所以,我通过以下命令添加了 EPEL

rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
yum install php-mcrypt

但是,当我运行 yum install 时,输出是这样的
Error: php55w-common conflicts with php-common-5.3.3-27.el6_5.x86_64
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

我现在不知道该怎么办。请帮忙。先感谢您。

最佳答案

正如错误所暗示的那样,它是矛盾的。您当前安装的 PHP 版本与您尝试安装的版本不同。

也许您正在尝试针对 5.5 安装 5.3 版本。寻找匹配的版本。

您也可以在安装 mcrypt RPM 之前进行“yum 更新”。

我发现这个来自:http://www.rackspace.com/knowledge_center/article/installing-rhel-epel-repo-on-centos-5x-or-6x

wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
sudo rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm

了解您当前正在运行的 PHP 版本会有所帮助。 epel上的mcrypt是php-mcrypt-5.3.3-3.el6.x86_64.rpm。通常,您可以通过命令行上的 php -v 或其中一个脚本中的 phpinfo() 找到版本。

关于php - 在 Centos 6.5 上安装 Mycrypt,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23508396/

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