CentOS 7 下php安装所遇问题故障解析
2017-08-04 00:00
246 查看
错误::configure: error: xml2-config not found. Please check your libxml2 installation.
解决办法:
错误::configure: error: Cannot find OpenSSL's <evp.h>
解决办法:
错误:checking for BZip2 in default path... not found
configure: error: Please reinstall the BZip2 distribution
解决办法:
错误:configure: error: png.h not found.
解决办法:
错误:configure: error: jpeg.h not found.
解决办法:
错误:configure: error: freetype.h not found.
解决办法:
错误:configure: error: mcrypt.h not found. Please reinstall libmcrypt.
解决办法: 因为centos6.x 及7.x默认的yum源没有libmcrypt-devel 这个包,只能借助第三方rpm源。
解决办法:
yum install -y libxml2-devel
错误::configure: error: Cannot find OpenSSL's <evp.h>
解决办法:
yum install -y openssl openssl-devel
错误:checking for BZip2 in default path... not found
configure: error: Please reinstall the BZip2 distribution
解决办法:
yum install -y bzip2 bzip2-devel
错误:configure: error: png.h not found.
解决办法:
yum install -y libpng libpng-devel
错误:configure: error: jpeg.h not found.
解决办法:
yum install -y libjpeg libjpeg-devel
错误:configure: error: freetype.h not found.
解决办法:
yum install -y freetype freetype-devel
错误:configure: error: mcrypt.h not found. Please reinstall libmcrypt.
解决办法: 因为centos6.x 及7.x默认的yum源没有libmcrypt-devel 这个包,只能借助第三方rpm源。
cd /usr/local/src wget http://sourceforge.net/projects/mcrypt/files/Libmcrypt/2.5.8/libmcrypt-2.5.8.tar.gz tar -zxvf libmcrypt-2.5.8.tar.gz cd /usr/local/src/libmcrypt-2.5.8 ./configure --prefix=/usr/local make make install
相关文章推荐
- centos 5.5 yum 安装 php 的部分问题
- CentOS(x86_64)下PHP安装memcache扩展问题解决方法分享
- CentOS 6.5 + Nginx 1.8.0 + PHP 5.6(with PHP-FPM) 负载均衡源码安装 之 (四)问题汇总
- 【转】centos安装memcached+php多服务器共享+session多机共享问题
- 解析centos中Apache、php、mysql 默认安装路径
- php在centos下的脚本没有解析的问题
- 解决在X64 RedHat5.1、centos、linux 下以编译方式安装PHP 出现的种种问题(转)
- 虚拟安装centos后无法上网、DNS无法解析问题解决
- 安装 MongoDB PHP 驱动 在CentOS 6.x和遇到的问题
- Centos 7 安装PHP 7 --skip-broken 问题解决
- Linux(Centos6。0) redis 安装及redisphp拓展安装应用和redis.conf 的详细解析
- 关于centOs下Apache不解析php文件问题的解决方法
- LAMP中php安装后的解析失败问题
- 解析centos中Apache、php、mysql 默认安装路径
- Centos下给php安装Redis扩展及编译问题解决
- CentOS6.0 yum php mcrypt 扩展安装问题
- centos安装php需要注意的问题
- CentOS 6.5 + Nginx 1.8.0 + PHP 5.6(with PHP-FPM) 负载均衡源码安装 之 (四)问题汇总
- centos下 php未安装posix扩展 安装phpsh导致的问题fix
- centos php-5.3.8 安装常见问题