简体   繁体   English

在Centos 6.5上安装Mycrypt

[英]Install Mycrypt on Centos 6.5

I need to install Mycrypt in order to run php artisan serve on my Centos 6.5. 我需要安装Mycrypt才能在Centos 6.5上运行php artisan serve So, I added the EPEL by the following commands 因此,我通过以下命令添加了EPEL

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

However, when I run the yum install, the output is like this 但是,当我运行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

I don't know what to do at this point. 我目前不知道该怎么办。 Please help. 请帮忙。 Thank you in advance. 先感谢您。

As the error suggests, it's conflicted. 如错误所示,这是有冲突的。 Your current install version of PHP differs from the one you're trying to install. 您当前安装的PHP版本与您尝试安装的版本不同。

Maybe you're trying to install a 5.3 version against a 5.5. 也许您正在尝试针对5.5安装5.3版本。 Look to find a matching version. 寻找找到匹配的版本。

It's also possible you should to a "yum update" prior to installing the mcrypt RPM. 也有可能您应该在安装mcrypt RPM之前先进行“ yum更新”。

I found this from: http://www.rackspace.com/knowledge_center/article/installing-rhel-epel-repo-on-centos-5x-or-6x 我是从以下网址找到的: 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

It would help to know what version of PHP you are currently running. 这将有助于您了解当前正在运行的PHP版本。 The mcrypt on the epel is php-mcrypt-5.3.3-3.el6.x86_64.rpm. epel上的mcrypt是php-mcrypt-5.3.3-3.el6.x86_64.rpm。 Usually you can find out the version by either php -v on the command line, or phpinfo() in one of your scripts. 通常,您可以通过命令行上的php -v或其中一个脚本中的phpinfo()来找到版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM