安装php54w-mcrypt报错

具体情况如下:
[root@web1 src]# rpm -ivh php54w-mcrypt-5.4.45-2.w6.x86_64.rpm
warning: php54w-mcrypt-5.4.45-2.w6.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID cf4c4ff9: NOKEY
error: Failed dependencies:
libltdl.so.7()(64bit) is needed by php54w-mcrypt-5.4.45-2.w6.x86_64
libmcrypt.so.4()(64bit) is needed by php54w-mcrypt-5.4.45-2.w6.x86_64
求助解决?
已邀请:

采菊篱下 - 无分享不快乐 助力技术开源分享 运维一枚

赞同来自: chris

 解决第一个: libltdl.so.7()(64bit)
yum -y install libtool-ltdl
验证:
[root@web1 src]# ldconfig -v |grep libltdl.so.7
libltdl.so.7 -> libltdl.so.7.2.1
如果yum仓库里面没有,下载地址:https://pkgs.org/download/libltdl.so.7()(64bit)
 
解决第二个:libmcrypt.so.4()(64bit) 
yum install libmcrypt-devel
 验证:
[root@web1 src]# ldconfig -v |grep libmcrypt.so.4
libmcrypt.so.4 -> libmcrypt.so.4.4.8
 错误提示缺少libmcrypt.so这个库,163和centos源里都没有libmcrypt,libmcrypt-devel两个包,我们可以添加 
rpm -ivh http://mirrors.sohu.com/fedora-epel/6/x86_64/epel-release-6-8.noarch.rpm
包下载地址: https://pkgs.org/download/libmcrypt.so.4()(64bit)  https://pkgs.org/download/libmcrypt-devel  

koyo - 网站管理 致力做全栈工程师 爱ui 爱前端

赞同来自: chris

When I did as the document: patch -p1 < ./tcp.patch
I got the follow error:can't find file to patch at input line 5 Perhaps you used the wrong -p or --strip option? The text leading up to this was: ------------------------------------------------- |diff --git a/src/core/ngx_log.c b/src/core/ngx_log.c |index 770a590..26dd221 100644 |--- a/src/core/ngx_log.c |+++ b/src/core/ngx_log.c ------------------------------------------------- File to patch:Then the shell seams to ask me to provide a file to patch.
What can i do ?
 
See the README:

$ cd nginx-0.7.65/
$ patch -p1< /path/to/nginx_tcp_proxy_module/tcp.patch

采菊篱下 - 无分享不快乐 助力技术开源分享 运维一枚

赞同来自:

libmpfr.so.1 is needed by cpp-4.4.4-13.el6.i686
libppl.so.7 is needed by cloog-ppl-0.15.7-1.2.el6.i686
libppl_c.so.2 is needed by cloog-ppl-0.15.7-1.2.el6.i686

是缺了这两个包。
mpfr-2.4.1-6.el6.x86_64.rpm
ppl-0.10.2-11.el6.x86_64.rpm

这两个安装好之后就可以安装cpp和cloog-ppl了,之后就能安装gcc了。

要回复问题请先登录注册