homestead 安装 GeoIp2 NGINX 模块报错
homestead install GeoIp2 NGINX module errors
我需要在我的 Homestead 上安装 https://github.com/leev/ngx_http_geoip2_module。
当我在我的 after.sh 中重新编译 nginx 时,我第一次收到模块不二进制兼容的错误,我读到我必须使用 ./configure 编译 Nginx 时使用的所有原始标志。
所以我使用 nginx -V 获取所有标志,将它们复制并粘贴到我的 after.sh 中,但现在我收到有关某些模块中缺少 /config 文件的错误,而其他模块需要库,例如:
==> 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 下载的 /nginx-1.11.5/ 目录中。
--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
任何人都对这种事情有经验,可以指导我如何以正确的方式做到这一点?
我最终先卸载了 nginx,然后下载了最新的稳定版本,并在安装 GeoIp2 模块之前从源代码重新编译了 nginx,然后它就像一个魅力。
我需要在我的 Homestead 上安装 https://github.com/leev/ngx_http_geoip2_module。 当我在我的 after.sh 中重新编译 nginx 时,我第一次收到模块不二进制兼容的错误,我读到我必须使用 ./configure 编译 Nginx 时使用的所有原始标志。
所以我使用 nginx -V 获取所有标志,将它们复制并粘贴到我的 after.sh 中,但现在我收到有关某些模块中缺少 /config 文件的错误,而其他模块需要库,例如:
==> 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 下载的 /nginx-1.11.5/ 目录中。
--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
任何人都对这种事情有经验,可以指导我如何以正确的方式做到这一点?
我最终先卸载了 nginx,然后下载了最新的稳定版本,并在安装 GeoIp2 模块之前从源代码重新编译了 nginx,然后它就像一个魅力。