From c7e591b36f70c82ff366cffb854c97138bc70ef3 Mon Sep 17 00:00:00 2001 From: kuno Date: Wed, 18 May 2011 09:22:37 +0800 Subject: [PATCH] added guidance for installation of geoip c library --- README.md | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1c907eb..3bc95a8 100644 --- a/README.md +++ b/README.md @@ -2,13 +2,31 @@ __GeoIP binding for nodejs__ Get geolocation information based on domain or IP address. -####New Architecture +##Import Notification From v0.4.0, geoip will be bind to libgeoip >= 1.4.6, which is a C library. +####New Architecture + ![new_architecture](https://github.com/kuno/GeoIP/raw/master/misc/new_architecture.png) +####How to install geoip C library + +If your os has a system package manager (e.g, on linux, apt of ubuntu, yum of fedora, pacman of arch. MacPorts and homebrew on OSX), + +then, there is a very high possibility that there is alreay a geoip c library package inside the repository. + +If not, you can build for yourself: + + wget http://geolite.maxmind.com/download/geoip/api/c/GeoIP-1.4.7.tar.gz + tar -xvzf GeoIP.tar.gz + cd GeoIP-1.4.7 + ./confiure + make + sudo make install + + ##Data Befor you can use this package, you need to download or buy some data from [www.maxmind.com](http://www.maxmind.com/app/ip-location).