Skip to content
TrailDB is an efficient tool for storing and querying series of events
C Python Other
Branch: master
Clone or download

Latest commit

Noeda Update wafscript to work with Python 3 + fix macOS builds.
The 'waf' script in the repo didn't quite work properly with Python 3.
I took the latest 'waf' and replaced it with the latest version that
works with Python 3.

Travis tests were broken for macOS, because homebrew has changed how
libarchive gets installed (it's now a keg-only dependency). This broke
the tests on macOS and trying to install TrailDB from source gets
annoying because user has to somehow install the libarchive properly.

So in this commit, I modified wscript so that it has bunch of ugly hacks
to try find the keg-only libarchive. It works on travis, it worked on my
laptop.

This is a squashed commit of the following:

commit 5bc72ec
Author: Mikko Juola <mikko.juola@adroll.com>
Date:   Fri Nov 1 16:12:22 2019 -0700

    Fix crash in wscript if PKG_CONFIG_PATH didn't get set by macos hacks.

commit 5f75bc8
Author: Mikko Juola <mikko.juola@adroll.com>
Date:   Fri Nov 1 15:59:49 2019 -0700

    Add hacks to make things work on macOS.

    MacOS is problematic with libarchive and homebrew no longer installs
    libarchive as a non-keg-only package.

    This commit adds dirty hacks to try cope with the Keg-only libarchive.
    This hopefully makes travis tests still work and make user experience
    of installing traildb from source less of a hassle.

commit fd67ed4
Author: Mikko Juola <mikko.juola@adroll.com>
Date:   Tue Oct 29 12:24:08 2019 -0700

    This was an accidental part I committed unintentionally.

    I was going try EXPORT-method to work around macOS brew bug but forgot
    to remove this part of code before I committed in previous commit
    the 'brew link' way instead.

commit f13c5d6
Author: Mikko Juola <mikko.juola@adroll.com>
Date:   Tue Oct 29 12:17:55 2019 -0700

    Try fix macOS tests on travis.

    Looks like macOS fails now because libarchive has become keg-only (so configure script can't find it because
    it's not in usual location at /usr/local/XXX

    I've added an extra brew link command to force it to put libarchive in the expected locations.

commit 12ccff4
Author: Mikko Juola <mikko.juola@adroll.com>
Date:   Tue Oct 29 10:56:27 2019 -0700

    Update waf script (so it can run on Python 3)
Latest commit 053ed8e Nov 1, 2019

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
doc update brew paths for Judy in documentation May 12, 2017
examples add Wikipedia example in the tutorial May 19, 2016
src Merge ssh://github.com/traildb/traildb into tdb_event_filter_match_none May 11, 2017
tdbcli Fix setting pointer instead of pointer value Aug 23, 2017
tests Add more tests for different merge scenarios Aug 23, 2017
util move traildb_bench into util/ subdirectory Jan 19, 2016
.gitignore Add pkg-config support, and fix warnings compilation of vendored libs May 19, 2016
.travis.yml Update wafscript to work with Python 3 + fix macOS builds. Nov 1, 2019
CHANGELOG.md bump up version numbers to 0.6 May 15, 2017
Dockerfile create a Dockerfile for building tdb base docker image Aug 14, 2016
LICENSE pretty-print LICENSE May 13, 2016
Makefile.am Fix autotools build. May 17, 2017
README.md update brew paths for Judy in documentation May 12, 2017
autogen.sh Add an autogen.sh. Dec 21, 2015
configure.ac bump up version numbers to 0.6 May 15, 2017
test.tdb add test.tdb that can be used to verify that TrailDB is installed ok May 19, 2016
traildb.pc.in Add pkg-config support, and fix warnings compilation of vendored libs May 19, 2016
waf Update wafscript to work with Python 3 + fix macOS builds. Nov 1, 2019
wscript Update wafscript to work with Python 3 + fix macOS builds. Nov 1, 2019

README.md

Gitter Travis CI Coverage Status

TrailDB

TrailDB is an efficient tool for storing and querying series of events. This repository contains the core C library and the tdb command line tool.

Learn more at traildb.io.

Quick start

For detailed installation instructions, see Getting Started guide.

Installing binaries

On OSX, TrailDB is available through homebrew:

$ brew install traildb

Linux binaries are not available yet.

Compiling and installing from source

Install Dependencies

$ apt-get install libarchive-dev libjudy-dev pkg-config

For RPM-based distros:

$ yum install judy-devel libarchive-devel pkg-config

For OSX:

$ brew install traildb/judy/judy libarchive pkg-config

For FreeBSD:

$ sudo pkg install python libarchive Judy pkgconf gcc

Note that your systems package manager may have too old of libjudy. You may also require a patch if you are using gcc 4.9.

Build TrailDB

$ ./waf configure
$ ./waf install

Alternatively you may use autotools

$ ./autogen.sh
$ ./configure
$ make
$ make install

Run Tests

$ ./waf test
You can’t perform that action at this time.