Giter VIP home page Giter VIP logo

alien-lmdb's Introduction

NAME

Alien::LMDB - Build and install the LMDB embedded database

SYNOPSIS

my $lmdb = Alien::LMDB->new;

my $cflags = $lmdb->cflags;
## "-I/usr/local/share/perl/5.20.2/auto/share/dist/Alien-LMDB/include"

my $libs = $lmdb->libs;
## "-L/usr/local/share/perl/5.20.2/auto/share/dist/Alien-LMDB/lib -llmdb"

my $mdb_stat_binary = $lmdb->bin_dir . '/mdb_stat';
system("$mdb_stat_binary /path/to/db");

The above methods are inherited from Alien::Base.

If pkg-config --modversion lmdb works on your system, Alien::Base will attempt to use the system-installed lmdb. Otherwise it will use a bundled lmdb tarball.

DESCRIPTION

This module is primarily for use with LMDB_File.

SEE ALSO

Alien-LMDB github repo

LMDB_File

Official LMDB site

github mirror of LMDB repo

Alien::Base

AUTHOR

Doug Hoyte, <[email protected]>

COPYRIGHT & LICENSE

Copyright 2016 Doug Hoyte.

This module includes LMDB (formerly known as MDB) which is copyright 2011-2016 Howard Chu, Symas Corp.

LMDB is licensed under the OpenLDAP license.

alien-lmdb's People

Contributors

hoytech avatar plicease avatar shlomif avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

shlomif msiva21

alien-lmdb's Issues

Build fails on FreeBSD systems

Two things:

  • The build seems to require GNU make, so on FreeBSD systems (and maybe on other non-Linux systems) "gmake" should be used explicitly. Maybe using Alien::gmake can help here.
  • On freebsd 10 and later, there's no gcc by default installed (clang is the default compiler). So using gcc does not work. This can be fixed by calling
'gmake -C libraries/liblmdb/ CC=cc'

t/installed.t fails on Debian/stretch

I see the following test failure, only on a Debian/stretch system:

Output from './Build test':

+ pkg-config --modversion lmdb

#   Failed test 'AlienLoaded hash populated with -llmdb'
#   at t/installed.t line 13.
Use of uninitialized value in -e at t/installed.t line 14.

#   Failed test 'AlienLoaded hash of -llmdb points to existant file'
#   at t/installed.t line 14.
# Looks like you failed 2 tests of 3.
t/installed.t .. 
Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/3 subtests 

This system has liblmdb0_0.9.18-5 installed.
On all other of my smokers (CentOS7, Debian/jessie, FreeBSD 10+9) the test suite passes.

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.