Download the C code from http://geolite.maxmind.com/download/geoip/api/c/ and configure and build that. Download the database from http://www.maxmind.com/app/geolitecity There are instructions there also. You can download this with wget -N -q http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz and then extract the file from the archive. Then install it in some location. Set the environment variable GEOIP_DLL to the full path of the DSO. Set the environment variable GEOIP_DATA to the full path of the database.