2017-08-16 11 views
0

nginxのインストールがあります。私はUbuntuマシンのソースから設定する必要があります。ソースファイルとモジュールは、私のローカルドライブ上に提供されていると私は、次の指示を与えられている:Nginxソースのインストールでヘッダーを認識できません-nginx-module設定ファイルがあります(Ubuntuにインストールしています)

このエラーで ./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/結果実行
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 

adding module ~/Platform/headers-more-nginx-module/ 
./configure: error: no ~/Platform//config was found 

、私は思った、[OK]を罰金を私は最終的にスラッシュを除去し、質を測るためのチルダのために外に/home/userを変更し、そして今、私はこのエラーになっています:

./configure: error: no ~/Platform/headers-more-nginx-module/config was found 

01を実行しますには設定ファイルの内容が表示されるので、正しい場所にあることがわかります。

./configureコマンドが正しいディレクトリに存在するにもかかわらず、このファイルを見つけられないことがある人は誰でも教えてください。

答えて

0

解決済み。これは、相対的なファイルパスの問題であったようです。開発ユーザーを参照している管理ユーザーからコマンドを実行すると効果があるようです。おそらく、./configureコマンドで参照されるときに、viで参照されるときのチルダの代替解釈に関する問題です。