2017-08-16 352 views
0

我有一個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命令可能不會找到這個文件,儘管它存在於正確的目錄中,以及如何解決這個問題?

回答

0

解決。這似乎是一個相對的文件路徑問題。從引用開發用戶的管理用戶運行命令似乎已經奏效。也許是在使用vi引用波浪線替代解釋時與使用./configure命令時引用的問題。