GeoIP for configuration into nginx

Mark Tomlin asked:

I’m trying to compile geoip into nginx. When doing ./configure --with-http_geoip_module I get the following error.

./configure: error: the GeoIP module requires the GeoIP library.
You can either do not enable the module or install the library.

I’ve tried any combination’s for trying to find the geoip module for nginx with apt-get and I’m having no luck. If anyone can point me in the correct direction.

My answer:

root@ip-10-112-39-42:~# apt-cache search geoip
libgeoip-dev - Development files for the GeoIP library
root@ip-10-112-39-42:~# apt-get install libgeoip-dev

View the full question and answer on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.