leev / ngx_http_geoip2_module

Nginx GeoIP2 module
BSD 2-Clause "Simplified" License
983 stars 186 forks source link

How would I tell nginx where to find libmaxminddb? #36

Closed DeadSix27 closed 8 years ago

DeadSix27 commented 8 years ago

I use custom library paths. NGINX knows about pkgconfig/libmaxminddb.pc

However apparently it just ignores it?`

adding module in third/ngx_http_geoip2_module_git
checking for MaxmindDB library ... not found
./configure: error: the geoip2 module requires the maxminddb library.

My compile script looks simplified like:

export PKG_CONFIG_PATH="$INSTALL_DIR/extra/lib/pkgconfig"
./configure ....--add-module=third/ngx_http_geoip2_module_git ....

Any idea?

$INSTALL_DIR/extra/lib/ contains a fully working & "make check" passing libmaxminddb so it apparently just can't find it

I also can't seem to find a config.log.. oddly enough apparently nginx doesn't create one?

Nvm figured it out, didn't even realise nginx doesn't even use pkgconfig giving it a "LIBRARY_PATH" made it work ;)