Installing Nginx under Linux
#./configure--prefix=/usr/local/nginx If you are prompted for a missing Pcre library, download from http://www.pcre.org/(wget ftp://ftp.csx.cam.ac.uk/pub/ SOFTWARE/PROGRAMMING/PCRE/PCRE-8.37.TAR.BZ2) Assume that the decompression in/usr/local/src/pcre-8.37 is assumed to be installed in the/usr/local/pcre
Configuration:./configure--prefix=/usr/local/nginx \>--with-pcre=/usr/local/src/pcre-8.37 Enter
Then compile:
Make && make install, if you're prompted for a missing zlib library,
Then download from http://www.zlib.net/
Compile again:
Make && make install,
If you have the following error message:
Configure:error:You need a C + + compiler for C + + support Final workaround: Install, yum install-y gcc gcc-c++ compile: Make && make INS Tall!!!
This article is from "The Morning Blog" blog, please be sure to keep this source http://rever.blog.51cto.com/11726034/1827554
Error when installing Nginx under Linux system: Configure:error:You need a C + + compiler for C + + support.