ubuntu編譯安裝nginx....心得

第一部:安裝wegt  python

sudo apt-get install wget nginx

第二下載nginx apache

wegt http://nginx.org/download/nginx-1.5.0.tar.gz curl

解壓: ui

tar zxvf filename.tar.gz url

查看configer spa

./configer可是提示 ssl

c complier cc is not found get

是由於沒有安裝gcc,而後安裝gcc openssl

   sudo apt-get install gcc

在執行./configure

可是:報錯./configure: error: the HTTP rewrite module requires the PCRE library.
You can either disable the module by using --without-http_rewrite_module
option, or install the PCRE library into the system, or build the PCRE library
statically from the source with nginx by using --with-pcre=<path> option.

解決辦法是:

sudo aptitude install libpcre3-dev

安裝make

    sudo apt-get install make

啊,發現好多依賴包須要安裝,搜了一下安裝經常使用的依賴包

2. 安裝其餘依賴包: 
sudo apt-get install g++ curl libssl-dev apache2-utils gcc    make   automake   python perl   

sudo apt-get install libpcre3 libpcre3-dev
你可能還須要安裝
sudo apt-get install openssl libssl-dev


OK

下面咱們開始make

sudo make

而後make install

sudo make install

相關文章
相關標籤/搜索