码迷,mamicode.com
首页 > 编程语言 > 详细

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

时间:2016-07-19 11:25:06      阅读:2772      评论:0      收藏:0      [点我收藏+]

标签:linux   nginx   

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

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

标签:linux   nginx   

原文地址:http://rever.blog.51cto.com/11726034/1827554

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!