天天看點

php安裝報錯

1.error: xml2-config not found. Please check your libxml2 installation.

解決辦法:

yum install -y libxml2-devel.x86_64

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

yum install -y openssl-devel.x86_64

3.error: Please reinstall the BZip2 distribution

yum install -y bzip2-devel.x86_64

4.error: jpeglib.h not found.

yum install -y libjpeg-turbo-devel.x86_64

5.error: png.h not found.

yum install -y libpng-devel.x86_64

6.error: freetype-config not found.

yum install -y freetype-devel.x86_64

7.error: mcrypt.h not found. Please reinstall libmcrypt.

yum install -y epel-release

yum install -y libmcrypt-devel

8.error: Please reinstall the libcurl distribution -

easy.h should be in <curl-dir>/include/curl/

yum install -y libcurl-devel.x86_64

本文轉自 蝦米的春天 51CTO部落格,原文連結:http://blog.51cto.com/lsxme/2048011,如需轉載請自行聯系原作者