11

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.

Mark Tomlin
  • 620
  • 3
  • 10
  • 23

2 Answers2

14
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
Michael Hampton
  • 237,123
  • 42
  • 477
  • 940
4

For Centos/RedHat and other yum-based:

yum provides geoip-devel

In my case it is in epel repo.

Putnik
  • 2,095
  • 3
  • 23
  • 40