Code Monkey home page Code Monkey logo

fortran-lmdb's Introduction

fortran-lmdb

A collection of Fortran 2018 interface bindings to the OpenLDAP Lightning Memory-Mapped Database (LMDB), a B-tree-based database management library modeled loosely on the BerkeleyDB API.

Build Instructions

The LMDB package has to be installed with development headers. On FreeBSD, run:

# pkg install databases/lmdb

On Linux, instead:

# apt-get install liblmdb-dev

Make

If GNU Fortran is used to build the interface library, select the build target depending on your operating system. On FreeBSD:

$ make freebsd

On Linux, instead:

$ make linux

On Windows:

$ make windows

Or, overwrite the argument PPFLAGS. Install the library and the module files system-wide, for example:

$ make install PREFIX=/opt

Link your programs against /opt/lib/libfortran-lmdb.a -llmdb. Alternatively, overwrite the default compiler and the compiler/preprocessor flags:

$ make FC=ifx FFLAGS="-O3" PPFLAGS="-D__linux__"

Build and run the test program:

$ make test
$ ./test_lmdb

Fortran Package Manager

Pass the operating system as an additional flag to the Fortran Package Manager. On FreeBSD:

$ fpm build --profile release --flag "-D__FreeBSD__"

On Linux:

$ fpm build --profile release --flag "-D__linux__"

On Windows:

$ fpm build --profile release --flag "-D_MSC_VER -D_WIN32"

You can add fortran-lmdb as an FPM dependency:

[dependencies]
fortran-lmdb = { git = "https://github.com/interkosmos/fortran-lmdb.git" }

Licence

ISC

fortran-lmdb's People

Contributors

interkosmos avatar

Watchers

 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.