[email protected] ~]# Yum install php-mcryptsetting up install Processno package Php-mcrypt available. Error:nothing to do
The original CentOS official by default does not support the mcrypt module , so must find another way to toss 2 hours to finally fix, here mainly used the Fedora Extension library, EPEL (Extra Packages for Enterprise Linux) First share the resolution process as follows:
First step: Find the RPM package in the extension library
Open URL: http://mirrors.sohu.com/fedora-epel/6/i386/use ctrl+f search keyword "epel-release" Find current latest expansion pack discover latest version: EPEL-RELEASE-6-7.NOARCH.RPM
As follows:
Then execute the command:
[Email protected] ~]# RPM-IVH http://mirrors.sohu.com/fedora-epel/6/i386/epel-release-6-7.noarch.rpm
See figure:
Note : The extension package is constantly updated, so you need to search for "epel-release" to find the correct version, otherwise the command will not perform successfully.
Step two: Execute the command:
Yum UpdateSee the line system:
Execute command:
[[email protected] ~]# Yum update
Then there is a period of waiting, because the system will be updated to the latest version of CentOS may be longer. complete! Prompt When the update is complete
See:
Step three: Execute commands yum repolist view installation Results
To see if you already have the EPEL (Extra Packages for Enterprise Linux) expansion pack, execute the commands and the results are as follows:
Execute command:
[email protected] ~]# Yum repolist
See figure:
If the epel description shown in is found to have been installed successfully, you can continue with the execution.
Fourth step: Execute command: Yum install Php-mcrypt installation MCrypt expansion pack
Execute command:
[Roo[email protected] ~]# Yum install Php-mcrypt
See figure:
You can see that you are ready to install, and enter Y to continue with the installation.
Fifth step: Restarting Apache is an extension in effect
Execute command:
[Email protected] ~]# service httpd restart
See figure:
Turn on PHPMyadmin red error prompt no longer.
CentOS Yum Installation mcrypt detailed illustration tutorial