Lately I tried to setup GeoIP2 with openresty, with lots of trying I didn't get it to compile. The machine is running x64 Debian 8.11.
The following error I'm receiving is: ./configure: error: the geoip2 module requires the maxminddb library. Compiling Under root.
Even though libmaxminddb is installed, and I did put in headers .h files in /usr/include.
By searching on the net, there have been other people coming across the same issue (though I don't think with openresty).
What they mentioned is that it's in the order which the modules is in ./configure by putting it before some modules or after it did work for some people.
I tried that by putting it before and after, and excluding every optional module in openresty and only compiled it with openresty + geoip2. Still I got the same error. and the library is located in:
whereis libmaxminddb
libmaxminddb: /usr/local/lib/libmaxminddb.la /usr/local/lib/libmaxminddb.a /usr/local/lib/libmaxminddb.so
So I thought, have anyone even compiled GeoIP2 with openresty, anyone with results? Or maybe there's a configuration error with openresty and geoip2 when you run ./configure.
Therefor I'm coming here. Looking for help, and hopefully not a issue by my part. I followed the instructions as stated.
Link to Nginx GeoIP2: https://github.com/leev/ngx_http_geoip2_module
Link to libmaxminddb (requirement): https://github.com/maxmind/libmaxminddb
Thanks hopefully there can be a workaround or a fix.