PHP编译configure时常见错误

参考 https://blog.csdn.net/dodott/article/details/49664379


configure: error: Cannot find OpenSSL's <evp.h>

yum install openssl-devel

configure: error: cURL version 7.10.5 or later is required to compile php with cURL support


sudo wget https://curl.haxx.se/download/curl-7.20.0.tar.gz
sudo tar -xzvf curl-7.20.0.tar.gz
cd curl-7.20.0
./configure
如果有错,提示没有c相关的编译器执行#yum install gcc命令
make

make install


configure: error: jpeglib.h not found
yum -y install libjpeg-devel


configure: error: png.h not found

yum install libpng

yum install libpng-devel

configure: error: xslt-config not found. Please reinstall the libxslt >= 1.1.0 distribution

yum -y install libxslt libxslt-devel






猜你喜欢

转载自blog.csdn.net/zhouyuqi1/article/details/80966623