Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mdeering/149385 to your computer and use it in GitHub Desktop.
Save mdeering/149385 to your computer and use it in GitHub Desktop.
cd
mkdir tmp
cd tmp
wget http://geolite.maxmind.com/download/geoip/api/c/GeoIP.tar.gz
wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz
tar zxvf GeoIP.tar.gz
cd GeoIP-1.4.6
./configure --prefix /opt/GeoIP
make
make check
sudo make install
sudo gem install geoip_city -- --with-geoip-include=/opt/GeoIP/include/ --with-geoip-lib=/opt/GeoIP/lib/
cd ..
sudo mv GeoLiteCity.dat /opt/GeoIP/share/GeoIP/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment