Skip to content

Instantly share code, notes, and snippets.

@ncr
Created September 8, 2008 07:29
Show Gist options
  • Save ncr/9392 to your computer and use it in GitHub Desktop.
Save ncr/9392 to your computer and use it in GitHub Desktop.
cd
mkdir src
cd src
curl -O http://www.maxmind.com/download/geoip/api/c/GeoIP-1.4.4.tar.gz
curl -O http://www.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz
tar zxf GeoIP-1.4.4.tar.gz
cd GeoIP-1.4.4
./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