summaryrefslogtreecommitdiff
path: root/INSTALL
blob: 08e3bc37cf17104f1097faf707a422ca1ebb9edd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
Building from source
====================

First, make sure the Haskell Platform is installed, preferably along with the
Gtk+ bindings for Haskell. On Debian-flavoured systems:

    sudo apt-get install haskell-platform libghc-gtk-dev

If you can't get the Haskell Platform via your package manager, see
<http://hackage.haskell.org/platform/>. If you can't get the Gtk+ binding for
Haskell via your package manager, you'll need to run:

    cabal install gtk2hs-buildtools

and ensure that ~/.cabal/bin is in your PATH before continuing.

Got that? Great!

    export PREFIX=/opt/bustle

    # Build and install Bustle itself.
    cabal install --prefix=$PREFIX

    # Build and install the stand-alone logger binary.
    make install PREFIX=$PREFIX

If the Haskell Platform is not available on the platform you want to do
some D-Bus profiling on, that's fine: the logger is written in C, and
you can view logs generated on your fancy embedded hardware on your more
pedestrian Linux laptop. The logger depends on a few widely-available
libraries:

    sudo apt-get install libglib2.0-dev libpcap-dev