12

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.

2 Answers 2

16
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
1
  • 1
    Insightful answer. I should rephrase the question too "How do I find packages on my system." May 1, 2013 at 5:24
4

For Centos/RedHat and other yum-based:

yum provides geoip-devel

In my case it is in epel repo.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .