This repository has been archived by the owner. It is now read-only.
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
78 lines (48 sloc) 1.94 KB


Pure Crystal GeoIP2 MaxMind DB binding

Installation C-lib

From the Git Repository

To install from Git, you will need automake, autoconf, and libtool installed in addition to make and a compiler.

Our public git repository is hosted on GitHub at

You can clone this repository and build it by running:

$ git clone --recursive

After cloning, run ./bootstrap from the libmaxminddb directory and then follow the instructions for installing from a tarball as described above.

On Ubuntu via PPA

MaxMind provides a PPA for recent version of Ubuntu. To add the PPA to your APT sources, run:

$ sudo add-apt-repository ppa:maxmind/ppa

Then install the packages by running:

$ sudo aptitude update
$ sudo aptitude install libmaxminddb0 libmaxminddb-dev mmdb-bin

On OS X via Homebrew

If you are on OS X and you have homebrew (see you can install libmaxminddb via brew.

$ brew install libmaxminddb


Add this to your application's shard.yml:

    github: delef/


require "geoip2"

TODO: Write usage instructions here


TODO: Write development instructions here


  1. Fork it ( )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request