2017-08-16 351 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命令时引用的问题。