douyueju2912 2017-01-18 16:18
浏览 90
已采纳

宅基地安装GeoIp2 NGINX模块错误

I need to install the https://github.com/leev/ngx_http_geoip2_module on my Homestead. When I recompile nginx in my after.sh first I got an error that the module is not binary compatible, I read that I have to do ./configure with all the original flags Nginx was compiled with.

So I used nginx -V to get all flags, copy&pasted them in my after.sh, but now I am getting errors about missing /config files in some of the modules and other modules need libraries, like: ==> 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.

These here gave me errors about missing files (probably because the /debian/ directory doesn't even exist in the /nginx-1.11.5/ dir I download from 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

Anybody have experience with this kind of thing and can give me pointers how to do this the right way?

  • 写回答

1条回答 默认 最新

  • doujia4759 2017-03-11 06:50
    关注

    I ended up deinstalling nginx first, then download the newest stable version and recompiling nginx from source before i install the GeoIp2 module, then it works like a charm.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 Arduino红外遥控代码有问题
  • ¥15 数值计算离散正交多项式
  • ¥30 数值计算均差系数编程
  • ¥15 redis-full-check比较 两个集群的数据出错
  • ¥15 Matlab编程问题
  • ¥15 训练的多模态特征融合模型准确度很低怎么办
  • ¥15 kylin启动报错log4j类冲突
  • ¥15 超声波模块测距控制点灯,灯的闪烁很不稳定,经过调试发现测的距离偏大
  • ¥15 import arcpy出现importing _arcgisscripting 找不到相关程序
  • ¥15 onvif+openssl,vs2022编译openssl64