我有一個nginx安裝需要在Ubuntu機器上從源代碼進行配置。源文件和模塊已提供我的本地驅動器上,我一直在考慮了以下說明:Nginx源碼安裝拒絕識別headers-more-nginx-module配置文件存在(在Ubuntu上安裝)
cd ~/Platform
tar xzf nginx-1.6.*
cd ~/Platform/nginx-1.6.*
./configure --with-http_ssl_module --with-http_gzip_static_module --with-http_stub_status_module --with-http_realip_module --add-module=/home/user/Platform/header-more-nginx-module/
make
sudo make install
sudo mkdir /var/log/nginx
運行./configure --with-http_ssl_module --with-http_gzip_static_module --with-http_stub_status_module --with-http_realip_module --add-module=/home/user/Platform/header-more-nginx-module/
導致此錯誤:
adding module ~/Platform/headers-more-nginx-module/
./configure: error: no ~/Platform//config was found
好,很好,我想,所以我刪除了最後的斜槓,並改變了/home/user
出來的好辦法一個波浪線,現在我得到這個錯誤:
./configure: error: no ~/Platform/headers-more-nginx-module/config was found
運行vi ~/Platform/headers-more-nginx-module/config
顯示配置文件的內容,所以我知道它在那裏,並在正確的位置。
誰能告訴我爲什麼./configure
命令可能不會找到這個文件,儘管它存在於正確的目錄中,以及如何解決這個問題?