安装报错:
错误1:
configure: error: xml2-config not found. Please check your libxml2 installation.
解决办法:
yum install -y libxml2-devel
错误2:
checking for BZip2 in default path... not found
configure: error: Please reinstall the BZip2 distribution
解决办法:
yum install -y bzip2-devel
错误3:
configure: error: jpeglib.h not found.
解决办法:
yum install -y libjpeg-turbo-devel
错误4:
configure: error: png.h not found.
解决办法:
yum install -y libpng libpng-devel
错误5:
configure: error: freetype-config not found.
解决办法:
yum install -y freetype freetype-devel
错误6:
configure: error: mcrypt.h not found. Please reinstall libmcrypt.
解决办法:
yum install -y epel-release
yum install -y libmcrypt libmcrypt-devel
错误7
configure: error: xml2-config not found. Please check your libxml2 installation.
解决办法
yum install -y libxml2 libxml2-devel
错误8
configure: error: Please reinstall the libcurl distribution -
easy.h should be in <curl-dir>/include/curl/
解决办法
yum install curl curl-devel
nginx相关问题
错误1
Restarting nginx (via systemctl): Warning: nginx.service changed on disk. Run ‘systemctl daemon-reload‘ to reload units.
解决办法:
我们可以先用systemctl daemon-reload
再systemctl restart nginx
即可。其他服务出现类似的情况,也可以使用systemctl daemon-reload来解决。
原文地址:http://blog.51cto.com/chenshengsheng/2110220
时间: 2024-10-08 10:23:40