首页 > 其他 > 详细

LNMP安装报错解决方案

时间:2014-08-04 18:15:48      阅读:295      评论:0      收藏:0      [点我收藏+]

configure: error: no acceptable cc found in $PATH

解决方案:yum install -y gcc


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

解决方案:yum install -y libxml2-devel


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

解决方案:yum install -y openssl-devel


configure: error: Please reinstall the libcurl distribution -easy.h should be in <curl-dir>/include/curl/

解决方案:yum install -y curl-devel


configure: error: jpeglib.h not found

解决方案:yum install -y libjpeg-turbo-devel

或者yum install -y libjpeg-devel


configure: error: png.h not found.

解决方案:yum install -y libpng-devel


configure: error: freetype.h not found.

解决方案:yum install -y freetype-devel


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

解决方案:yum install -y libmcrypt-devel

要是不能用yun安装的话 ,就要去下载个gz包自己编译安装

解决方案:cd /usr/local/src/

wget ftp://mcrypt.hellug.gr/pub/crypto/mcrypt/attic/libmcrypt/libmcrypt-2.5.7.tar.gz

tar -zxvf libmcrypt-2.5.7.tar.gz

cd libmcrypt-2.5.7 

mkdir -p /usr/local/libmcrypt

./configure prefix=/usr/local/libmcrypt/

make

make install

然后再编译PHP时将--with-mcrypt改为

--with-mcrypt=/usr/local/libmcrypt/

#########################################################################################

编译make

/usr/bin/ld: cannot find -lltdl

collect2: ld returned 1 exit status

make: *** [sapi/fpm/php-fpm] 错误 1

解决方案:yum install -y libtool-ltdl-devel

#########################################################################################

nginx编译报错

./configure: error: the HTTP rewrite module requires the PCRE library.

解决方案:yum -y install pcre-devel


本文出自 “时不待我!” 博客,请务必保留此出处http://zengweidao.blog.51cto.com/8342699/1535579

LNMP安装报错解决方案,布布扣,bubuko.com

LNMP安装报错解决方案

原文:http://zengweidao.blog.51cto.com/8342699/1535579

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!