2017-01-18 110 views
1

我需要在我的Homestead上安裝https://github.com/leev/ngx_http_geoip2_module。 當我在我的after.sh中重新編譯nginx時,我得到一個錯誤,表示模塊不是二進制兼容的,我讀到了必須執行./configure與Nginx編譯時的所有原始標誌。家園安裝GeoIp2 NGINX模塊錯誤

所以我用的nginx -V讓所有的標誌,複製&在我after.sh粘貼他們,但現在我得到有關的一些模塊和其它模塊的丟失/配置文件中的錯誤需要的庫,例如: ==> homestead-7: ./configure: error: the HTTP image filter module requires the GD library. ==> homestead-7: You can either do not enable the module or install the libraries.

這些在這裏給我的錯誤,丟失的文件(可能是因爲在/ debian /目錄,甚至沒有在/nginx-1.11.5/ DIR我從nginx的下載存在。 --add-dynamic-module=/build/nginx-Rrk92d/nginx-1.11.5/debian/modules/nginx-auth-pam --add-dynamic-module=/build/nginx-Rrk92d/nginx-1.11.5/debian/modules/nginx-echo --add-dynamic-module=/build/nginx-Rrk92d/nginx-1.11.5/debian/modules/nginx-upstream-fair --add-dynamic-module=/build/nginx-Rrk92d/nginx-1.11.5/debian/modules/ngx_http_substitutions_filter_module

人有經驗有了這樣的事情,並可以給我指針如何以正確的方式做到這一點?

+0

你從哪裏安裝NGINX?通過官方nginx網站的wget發送 –

+0

。 1.11.5:wget http://nginx.org/download/nginx-VERSION.tar.gz tar zxvf nginx-VERSION.tar.gz cd nginx-VERSION – Madsem

回答

0

我最終首先卸載了nginx,然後在安裝GeoIp2模塊之前下載最新的穩定版本並從源碼重新編譯nginx,然後它就像魅力一樣工作。