Linux系统下 安装nginx时出现提示的错误:configure: error: You need a C++ compiler for C++ support.

时间:2016-07-19 11:25:06   收藏:0   阅读:2772
Linux下安装nginx
#./configure--prefix=/usr/local/nginx
如果提示缺少pcre库,
则从http://www.pcre.org/ 下载 (wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.37.tar.bz2)
假设解压在/usr/local/src/pcre-8.37
假设安装在/usr/local/pcre

配置: ./configure --prefix=/usr/local/nginx \> --with-pcre=/usr/local/src/pcre-8.37 回车

然后编译:
make && make install , 如果又提示缺少zlib库,
则从http://www.zlib.net/ 下载
再次编译:
make && make install ,

这时如果有以下错误提示:
configure: error: You need a C++ compiler for C++ support

最终解决方法:
安装, yum install -y gcc gcc-c++ 

编译:make && make install

大功告成!!!




本文出自 “天明的博客” 博客,请务必保留此出处http://rever.blog.51cto.com/11726034/1827554

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!