Created
September 8, 2008 07:29
-
-
Save ncr/9392 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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