编译php出现的问题及解决方法

configure: error: xml2-config not found. Please check your libxml2 installation
解决方法:
检查是否安装了libxml2
rpm -qa |grep libxml2
yum install libxml2
yum install libxml2-devel -y (补充依赖包)

configure: error: Please reinstall the libcurl distribution
解决方法:
yum install curl
yum install curl-devel

configure: error: jpeglib.h not found
解决方法:
检查是否安装了libjpeg
rpm -qa | grep libjpeg
yum -y install libjpeg-devel

configure: error: freetype.h not found
解决方法:
yum install freetype-devel

configure: error: mcrypt.h not found. Please reinstall libmcrypt
解决方法:
wget http://jaist.dl.sourceforge.net/project/mcrypt/Libmcrypt/2.5.8/libmcrypt-2.5.8.tar.gz
tar -zxvf libmcrypt-2.5.8.tar.gz
cd libmcrypt-2.5.8
./configure
make
make install

xslt-config not found. Please reinstall the libxslt
解决方法:
yum -y install libxslt
yum -y install libxslt-devel

发布了8 篇原创文章 · 获赞 0 · 访问量 48

猜你喜欢

转载自blog.csdn.net/weixin_46350562/article/details/104714820
今日推荐