GithubHelp home page GithubHelp logo

testcafe / libmaxminddb Goto Github PK

View Code? Open in Web Editor NEW

This project forked from maxmind/libmaxminddb

0.0 3.0 0.0 3.09 MB

C library for the MaxMind DB file format

Home Page: http://maxmind.github.io/libmaxminddb/

License: Apache License 2.0

libmaxminddb's Introduction

About

The libmaxminddb library provides a C library for reading MaxMind DB files, including the GeoIP2 databases from MaxMind. This is a custom binary format designed to facilitate fast lookups of IP addresses while allowing for great flexibility in the type of data associated with an address.

The MaxMind DB format is an open format. The spec is available at http://maxmind.github.io/MaxMind-DB/. This spec is licensed under the Creative Commons Attribution-ShareAlike 3.0 Unported License.

See http://dev.maxmind.com/ for more details about MaxMind's GeoIP2 products.

License

This library is licensed under the Apache License, Version 2.

Installing from a Tarball

This code is known to work with GCC 4.4+ and clang 3.2+. It should also work on other compilers that supports C99, POSIX 2011.11, and the -fms-extensions flag (or equivalent). The latter is needed to allow an anonymous union in a structure.

To install this code, run the following commands:

$ ./configure
$ make
$ make check
$ sudo make install
$ sudo ldconfig

You can skip the make check step but it's always good to know that tests are passing on your platform.

The configure script takes the standard options to set where files are installed such as --prefix, etc. See ./configure --help for details.

Installing from the Git Repository

Our public git repository is hosted on GitHub at https://github.com/maxmind/libmaxminddb

You can clone this repository and build it by running:

$ git clone --recursive https://github.com/maxmind/libmaxminddb
$ cd libmaxminddb
$ ./bootstrap
$ ./configure
$ make check
$ sudo make install
$ sudo ldconfig

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

Installing via Homebrew (on OS X)

If you are on OS X and you have homebrew (see http://brew.sh/) you can install libmaxminddb via brew.

$ brew install libmaxminddb

Bug Reports

Please report bugs by filing an issue with our GitHub issue tracker at https://github.com/maxmind/libmaxminddb/issues

Dev Tools

We have a few development tools under the dev-bin directory to make development easier. These are written in Perl or shell. They are:

  • regen-prototypes.pl - This regenerates the prototypes in the header and source files. This helps keep headers and code in sync.
  • uncrustify-all.sh - This runs uncrustify on all the code. It runs regen-prototypes.pl first. Please run this before submitting patches.
  • valgrind-all.pl - This runs Valgrind on the tests and mmdblookup to check for memory leaks.

Creating a Release Tarball

Use make safedist to check the resulting tarball.

Copyright and License

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

libmaxminddb's People

Contributors

autarch avatar borisz avatar oschwald avatar eilara avatar fabled avatar thekindofme avatar glensc avatar oalders avatar

Watchers

James Cloos avatar testcafe avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.