2017-01-18 112 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,然后它就像魅力一样工作。