Centos6.5编译php报错:configure: error: mcrypt.h not found. Please reinstall libmcrypt.
2016-04-24 22:41
639 查看
Centos6.5编译php时报错:configure: error: mcrypt.h not found. Please reinstall libmcrypt.
百度上找了很多解决办法,都不能使用。
解决办法:
[root@xclinux php-5.3.27]# yum install libmcrypt-devel -y 安装libmcryp
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.skyshe.cn
* extras: mirrors.skyshe.cn
* updates: mirrors.pubyun.com
Setting up Install Process
No package mcryptlib-devel available.
Error: Nothing to do
以上是常规解决办法。我到这里还不能安装mcrypt。因为yum源里没有这个的包,只能更换yum源。
解决办法:
全部改成阿里云
[root@xclinux ~]# rm -rf /etc/yum.repos.d/*
执行此操作的时候记得事先装好wget 不然 你就得挂载光盘用rpm装wget了
[root@xclinux ~]# wget -P /etc/yum.repos.d/ http://mirrors.aliyun.com/repo/epel-6.repo http://mirrors.aliyun.com/repo/Centos-6.repo
这条命令的意思是把centos6的repo文件和epel文件同时下载到/etc/yum.repos.d这个目录下
这个时候,执行 yum repolist的结果如下
[root@xclinux ~]# yum repolist
已加载插件:fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* epel: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
Setting up Install Process
百度上找了很多解决办法,都不能使用。
解决办法:
[root@xclinux php-5.3.27]# yum install libmcrypt-devel -y 安装libmcryp
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.skyshe.cn
* extras: mirrors.skyshe.cn
* updates: mirrors.pubyun.com
Setting up Install Process
No package mcryptlib-devel available.
Error: Nothing to do
以上是常规解决办法。我到这里还不能安装mcrypt。因为yum源里没有这个的包,只能更换yum源。
解决办法:
全部改成阿里云
[root@xclinux ~]# rm -rf /etc/yum.repos.d/*
执行此操作的时候记得事先装好wget 不然 你就得挂载光盘用rpm装wget了
[root@xclinux ~]# wget -P /etc/yum.repos.d/ http://mirrors.aliyun.com/repo/epel-6.repo http://mirrors.aliyun.com/repo/Centos-6.repo
这条命令的意思是把centos6的repo文件和epel文件同时下载到/etc/yum.repos.d这个目录下
这个时候,执行 yum repolist的结果如下
[root@xclinux ~]# yum repolist
已加载插件:fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* epel: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
Setting up Install Process
相关文章推荐
- linux内核分析期中测试
- linux服务器 NFS挂载
- [Linux/Mac学习] grep用法心得
- linux命令之top
- 《Linux内核分析》期末总结及学习心得
- linux常用查看硬件设备信息命令
- Linux系统安装
- Linux NAPI/非NAPI 网卡驱动部分
- Linux内核学习总结
- Linux 目录结构及文件基本操作
- Linux grub2 恢复
- Linux命令总结
- How to Build Executable with ndk-build VS arm-linux-androideabi-gcc
- Linux期中总结
- Centos 6.5 安装 chrome , mplayer , alarm , clock
- Linux下源码安装MySQL5.6.30
- CentOs精简安装后需要的软件
- DayDayUP_linux运维学习_lrzsz安装过程
- 作为一个新人,怎样学习嵌入式Linux?
- Linux 的启动流程