Skip to content

Commit

Permalink
added guidance for installation of geoip c library
Browse files Browse the repository at this point in the history
  • Loading branch information
kuno committed May 18, 2011
1 parent 135460a commit c7e591b
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion README.md
Expand Up @@ -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).
Expand Down

0 comments on commit c7e591b

Please sign in to comment.