How to Install nginx for me

first ,  cd nginx source direct, then type ./configure --prefix=/usr/local/nginx

it told me that,  with no pcre , so i download pcre.an install it to /usr/local/pcre.

then i do like this  ./configure --prefix=/usr/local/nginx --with-pcre=/usr/local/pcre

The compile result told me that  there is no zlib,  so i download zlib, then install it to /usr/local/zlib

./configure --prefix=/usr/local/nginx --with-pcre=/usr/local/pcre --with-zlib=/usr/local/zlib

 but it told me that can't find configure in /us/local/pcre,  i  become unkonw what happen,

so i change the  the with-pcre= /home/ccy/downloads/pcre-8.20 , then  i get a error can't find zlib.h.

i thinck , i may be need source code , not after install. so i also give the source code path for zlib, it become ok.

but i add  openssl with  with-openssl = /usrl/bin  , that's ok .

then  i  do make.

last use  sudo  make install .

so i get  compile sucess now .

posted on 2011-11-20 21:00  子虚乌有  阅读(153)  评论(0)    收藏  举报