Compiling Nginx with geoip module on Mac OS X

i0n ianalexanderwood at gmail.com
Mon Nov 15 06:59:26 MSK 2010


Hi there.

I'm trying to compile the geoip module on my local development machine
and I get an error when I run make

I've installed geoip using homebrew
brew install geoip

and linked the library up
brew link geoip

Then:

./configure --with-http_geoip_module
make

and I get this error:

src/http/modules/ngx_http_geoip_module.c:157: error: ‘GeoIPRecord’ has
no member named ‘dma_code’
make[1]: *** [objs/src/http/modules/ngx_http_geoip_module.o] Error 1
make: *** [build] Error 2

Any ideas?




More information about the nginx mailing list