See the copyright information in the file named COPYRIGHT.
require 'geoip'
geoip.COUNTRYgeoip.COUNTRY_V6geoip.REGION_REV0geoip.REGION_REV1geoip.REGION=geoip.REGION_REV1geoip.CITY_REV0geoip.CITY_REV1geoip.CITY=geoip.CITY_REV1geoip.ORGgeoip.ISPgeoip.PROXYgeoip.ASNUMgeoip.NETSPEEDgeoip.DOMAIN
geoip.STANDARDgeoip.MEMORY_CACHEgeoip.CHECK_CACHEgeoip.INDEX_CACHEgeoip.MMAP_CACHE
geoip.ISO_8859_1geoip.UTF8
TODO: Document further. Meanwhile, see tests.
MaxMind provides a PPA for recent version of Ubuntu. To add the PPA to your APT sources, run:
$ sudo add-apt-repository ppa:maxmind/ppa
$ sudo apt-get update
Then install the packages by running:
$ sudo apt-get install geoip-database # GeoLite Country only
$ sudo apt-get install libgeoip-dev
$ wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz
$ wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz
http://www.maxmind.com/app/c