Original source: http://51network.blog.51cto.com/864602/1434360
Today yum Install PHP-FPM (your company made RPM package and source) error
The error message is as follows:
1 2 3 4 5 |
--> finished Dependency resolution php-fpm-5.3. 10-mjh. 1. x86_64 from Mjh_repo has depsolving problems--> Missing. 4 () (64bit) is needed by package php-fpm-5.3. 10-mjh. 1. x86_64 (Mjh_repo) error:missing Dependency:libmcrypt.so. 4 () (64bit) is needed by package php-fpm-5.3. 10-mjh. 1. x86_64 (Mjh_repo) You could try-using--skip-broken to work around the problem |
Error message missing libmcrypt.so This library, 163 and CentOS sources are not libmcrypt,libmcrypt-devel two packages, when installing PHP requires this extension
Download the appropriate Epel source:
(1). 32-bit system
[Root@localhost src]# wget http://mirrors.yun-idc.com/epel/5/i386/epel-release-5-4.noarch.rpm
(2). 64-bit system
[Root@localhost ~]# http://mirrors.hust.edu.cn/epel//5/x86_64/epel-release-5-4.noarch.rpm
Install Epel Source (Note: I am here 64-bit system)
[Root@localhost src]# RPM-IVH epel-release-5-4.noarch.rpm
Warning:epel-release-5-4.noarch.rpm:header V3 DSA Signature:nokey, key ID 217521f6
Preparing ... ########################################### [100%]
1:epel-release ########################################### [100%]
Import Key File
[Root@localhost src]# rpm--import/etc/pki/rpm-gpg/rpm-gpg-key-centos-5
Workaround:
Epel, extra Packages for Enterprise Linux (Http://fedoraproject.org/wiki/EPEL) is built by the Fedora community for RHEL and derivative distributions such as CentOS, Scientific Linux and other projects that provide high-quality software packages. Here you can get RHEL's high quality, high performance, high reliability, free and easy to use package.
Yum Install libmcrypt-devel install yum install PHP-FPM will not be an error (use ldconfig-v |grep libmcrypt.so.4 view)
This article is from the "linuxsed" blog, please be sure to keep this source http://51network.blog.51cto.com/864602/1434360