解决php安装过程中, mcrypt.h not found 的报错问题
来源:互联网 发布:网络b类违规是什么意思 编辑:程序博客网 时间:2024/06/06 10:08
我发现很多人只给出解决问题的方法,而不说明原因,我们要知其然,并且知其所以然。
问题原因:
我们在./configure的时候,带有--with-mcrypt,这是一个要求提供mcrypt算法的功能,这就要求安装有libmcrypt和libmcrypt-devel库,php要依赖这两个库来实现mcrypt算法的功能,所以出现这个问题,归根到底有两个原因
一、没安装libmcrypt和libmcrypt-devel库
二、./configure的时候没找到这两个库;
解决办法,我们安装并且让php找到这个库;
一、安装库类程序,最好使用yum安装
wget http://mirrors.hust.edu.cn/epel/6/x86_64/libmcrypt-2.5.8-9.el6.x86_64.rpm
wgethttp://mirrors.hust.edu.cn/epel/6/x86_64/libmcrypt-devel-2.5.8-9.el6.x86_64.rpm
然后执行 yum localinstall 安装二、然php找到
./configure 配置中加入--with-libdir=lib64
因为在64位的linux中,通过yum安装的库文件都在lib64这个目录下,加上这一句的话,php就能找到了。这样问题就可以解决了
阅读全文
0 0
- 解决php安装过程中, mcrypt.h not found 的报错问题
- PHP安装mcrypt.so报错 mcrypt.h not found 的解决办法
- PHP安装mcrypt.so报错 mcrypt.h not found 的解决办法
- 编译安装php报错PHP configure: error: mcrypt.h not found. Please reinstall libmcrypt. 解决办法
- 解决php编译报错configure: error: mcrypt.h not found. Please reinstall libmcrypt.
- Centos6.5编译php报错:configure: error: mcrypt.h not found. Please reinstall libmcrypt.
- 服务器php安装configure: error: mcrypt.h not found. Please reinstall libmcrypt
- 服务器php安装configure: error: mcrypt.h not found. Please reinstall libmcrypt
- mcrypt.h not found. Please reinstall libmcrypt”的解决方法
- 支付宝sdk集成过程中报 openssl/asn1.h file not found错误的解决办法
- 支付宝sdk集成过程中报 openssl/asn1.h file not found错误的解决办法
- 解决OSX升级到Sierra后,安装OpenCV报错:QTKit/QTKit.h file not found
- 安装php时的报错 xml2-config not found.
- tensorflow 1.0安装过程中出现/usr/lib64/libstdc++.so.6: version 'GLIBCXX_3.4.19' not found问题的解决
- php中Mcrypt加密慢的问题
- 解决 安装 MYSQL exec: g++: not found 报错
- 使用Hibernate过程中出现entity class not found 问题的解决思路
- 使用Hibernate过程中出现entity class not found 问题的解决思路
- cvLoadImage用法
- Openvswitch手册(3): sFlow, netFlow
- linux配置java环境变量(详细)
- RxJava2对比RxJava
- Sanic
- 解决php安装过程中, mcrypt.h not found 的报错问题
- 一个类的对象可以成为另一个类的数据成员
- cache.xml配置
- Swift类型转换
- 将byte[] 数据输出到页面展示图片
- 剑指Offer-16
- stylus之变量(Variables)
- sql查找被锁表名,释放表资源
- idea误删文件恢复方法