Commit 1196bf99 authored by Petr Pudlak's avatar Petr Pudlak

Update the installation instructions

- Don't explicitly install virtual packages provided by GHC
  (and note this in the list).
- Add minimum versions to several packages.
- Fix the configuration flag for the monitoring daemon.
- Add a note that additional packages installed using cabal should go
  only after the ones provided by the user's distribution.
Signed-off-by: default avatarPetr Pudlak <pudlak@google.com>
Reviewed-by: default avatarKlaus Aehlig <aehlig@google.com>
parent da8f456d
......@@ -136,7 +136,8 @@ deploy Ganeti on production machines). More specifically:
`utf8-string <http://hackage.haskell.org/package/utf8-string>`_
libraries; these usually come with the GHC compiler
- `text <http://hackage.haskell.org/package/text>`_
- `deepseq <http://hackage.haskell.org/package/deepseq>`_
- `deepseq <http://hackage.haskell.org/package/deepseq>`_,
usually comes with the GHC compiler
- `curl <http://hackage.haskell.org/package/curl>`_, tested with
versions 1.3.4 and above
- `hslogger <http://software.complete.org/hslogger>`_, version 1.1 and
......@@ -147,10 +148,14 @@ deploy Ganeti on production machines). More specifically:
version 4.2.4
- `regex-pcre <http://hackage.haskell.org/package/regex-pcre>`_,
bindings for the ``pcre`` library
- `attoparsec <http://hackage.haskell.org/package/attoparsec>`_
- `attoparsec <http://hackage.haskell.org/package/attoparsec>`_,
version 0.10 and above
- `vector <http://hackage.haskell.org/package/vector>`_
- `process <http://hackage.haskell.org/package/process>`_, version 1.0.1.1 and
above
above; usually comes with the GHC compiler
- `base64-bytestring
<http://hackage.haskell.org/package/base64-bytestring>`_,
version 1.0.0.0 and above
- `lifted-base <http://hackage.haskell.org/package/lifted-base>`_,
version 0.1.1 and above.
- `lens <http://hackage.haskell.org/package/lens>`_,
......@@ -159,7 +164,7 @@ deploy Ganeti on production machines). More specifically:
Some of these are also available as package in Debian/Ubuntu::
$ apt-get install ghc libghc-json-dev libghc-network-dev \
libghc-parallel-dev libghc-deepseq-dev \
libghc-parallel-dev \
libghc-utf8-string-dev libghc-curl-dev \
libghc-hslogger-dev \
libghc-crypto-dev libghc-text-dev \
......@@ -202,19 +207,34 @@ ones not available in your distribution packages) via ``cabal``::
attoparsec vector base64-bytestring \
lifted-base==0.2.0.3 lens==3.10
(The specified versions are suitable for Debian Wheezy, for other
distributions different versions might be needed.)
.. _cabal-order-note:
.. note::
When installing additional libraries using ``cabal``, be sure to first
install all the required libraries available in your distribution and
only then install the rest using ``cabal``.
Otherwise cabal might install different versions of libraries that are
available in your distribution, causing conflicts during the
compilation.
This applies in particular when installing libraries for the optional
features.
Haskell optional features
~~~~~~~~~~~~~~~~~~~~~~~~~
Optionally, more functionality can be enabled if your build machine has
a few more Haskell libraries enabled: the ``ganeti-confd`` daemon
(``--enable-confd``), the monitoring daemon (``--enable-mond``) and
(``--enable-confd``), the monitoring daemon (``--enable-monitoring``) and
the meta-data daemon (``--enable-metadata``).
The extra dependency for these is:
- `snap-server` <http://hackage.haskell.org/package/snap-server>`_, version
0.8.1 and above.
This library is available in Debian Wheezy, so you can use either apt::
This library is available in Debian Wheezy or later, so you can use
either apt::
$ apt-get install libghc-snap-server-dev
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment