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

宅基地安装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 如何让企业微信机器人实现消息汇总整合
  • ¥50 关于#ui#的问题:做yolov8的ui界面出现的问题
  • ¥15 如何用Python爬取各高校教师公开的教育和工作经历
  • ¥15 TLE9879QXA40 电机驱动
  • ¥20 对于工程问题的非线性数学模型进行线性化
  • ¥15 Mirare PLUS 进行密钥认证?(详解)
  • ¥15 物体双站RCS和其组成阵列后的双站RCS关系验证
  • ¥20 想用ollama做一个自己的AI数据库
  • ¥15 关于qualoth编辑及缝合服装领子的问题解决方案探寻
  • ¥15 请问怎么才能复现这样的图呀