Revision 1ca709c1 INSTALL
b/INSTALL | ||
---|---|---|
133 | 133 |
`utf8-string <http://hackage.haskell.org/package/utf8-string>`_ |
134 | 134 |
libraries; these usually come with the GHC compiler |
135 | 135 |
- `deepseq <http://hackage.haskell.org/package/deepseq>`_ |
136 |
- `curl <http://hackage.haskell.org/package/curl>`_, tested with |
|
137 |
versions 1.3.4 and above |
|
136 | 138 |
|
137 | 139 |
Some of these are also available as package in Debian/Ubuntu:: |
138 | 140 |
|
139 | 141 |
$ apt-get install ghc6 libghc6-json-dev libghc6-network-dev \ |
140 |
libghc6-parallel-dev libghc6-deepseq-dev |
|
142 |
libghc6-parallel-dev libghc6-deepseq-dev \ |
|
143 |
libghc6-curl-dev |
|
141 | 144 |
|
142 | 145 |
Or in newer versions of these distributions (using GHC 7.x):: |
143 | 146 |
|
144 | 147 |
$ apt-get install ghc libghc-json-dev libghc-network-dev \ |
145 |
libghc-parallel-dev libghc-deepseq-dev \
|
|
146 |
libghc-utf8-string-dev |
|
148 |
libghc-parallel-dev libghc-deepseq-dev \ |
|
149 |
libghc-utf8-string-dev libghc-curl-dev
|
|
147 | 150 |
|
148 |
In Fedora, they are available via packages as well::
|
|
151 |
In Fedora, some of them are available via packages as well::
|
|
149 | 152 |
|
150 | 153 |
$ yum install ghc ghc-json-devel ghc-network-devel \ |
151 | 154 |
ghc-parallel-devel ghc-deepseq-devel |
... | ... | |
158 | 161 |
Then install the additional libraries via |
159 | 162 |
``cabal``:: |
160 | 163 |
|
161 |
$ cabal install json network parallel utf8-string |
|
162 |
|
|
163 |
The compilation of the htools components is automatically enabled when |
|
164 |
the compiler and the requisite libraries are found. You can use the |
|
165 |
``--enable-htools`` configure flag to force the selection (at which |
|
166 |
point ``./configure`` will fail if it doesn't find the prerequisites). |
|
167 |
|
|
164 |
$ cabal install json network parallel utf8-string curl |
|
168 | 165 |
|
169 | 166 |
Haskell optional features |
170 | 167 |
~~~~~~~~~~~~~~~~~~~~~~~~~ |
171 | 168 |
|
172 | 169 |
Optionally, more functionality can be enabled if your build machine has |
173 |
a few more Haskell libraries enabled: RAPI access to remote cluster from |
|
174 |
htools (``--enable-htools-rapi``), the ``ganeti-confd`` |
|
175 |
daemon (``--enable-confd``) and the monitoring agent |
|
170 |
a few more Haskell libraries enabled: the ``ganeti-confd`` daemon |
|
171 |
(``--enable-confd``) and the monitoring agent |
|
176 | 172 |
(``--enable-monitoring``). The list of extra dependencies for these is: |
177 | 173 |
|
178 |
- `curl <http://hackage.haskell.org/package/curl>`_, tested with |
|
179 |
versions 1.3.4 and above |
|
180 | 174 |
- `hslogger <http://software.complete.org/hslogger>`_, version 1.1 and |
181 | 175 |
above (note that Debian Squeeze only has version 1.0.9) |
182 | 176 |
- `Crypto <http://hackage.haskell.org/package/Crypto>`_, tested with |
... | ... | |
193 | 187 |
the exception of curl), so you can use either apt:: |
194 | 188 |
|
195 | 189 |
$ apt-get install libghc-hslogger-dev libghc-crypto-dev libghc-text-dev \ |
196 |
libghc-hinotify-dev libghc-regex-pcre-dev libghc-curl-dev \
|
|
190 |
libghc-hinotify-dev libghc-regex-pcre-dev \ |
|
197 | 191 |
libghc-attoparsec-dev libghc-vector-dev |
198 | 192 |
|
199 | 193 |
or ``cabal``:: |
200 | 194 |
|
201 |
$ cabal install hslogger Crypto text hinotify regex-pcre curl \
|
|
195 |
$ cabal install hslogger Crypto text hinotify regex-pcre \ |
|
202 | 196 |
attoparsec vector |
203 | 197 |
|
204 | 198 |
to install them. |
205 | 199 |
|
206 |
The most recent Fedora doesn't provide ``curl``, ``crypto``,
|
|
207 |
``inotify``. So these need to be installed using ``cabal``, if
|
|
208 |
desired. The other packages can be installed via ``yum``::
|
|
200 |
The most recent Fedora doesn't provide ``crypto``, ``inotify``. So these
|
|
201 |
need to be installed using ``cabal``, if desired. The other packages can
|
|
202 |
be installed via ``yum``:: |
|
209 | 203 |
|
210 | 204 |
$ yum install ghc-hslogger-devel ghc-text-devel \ |
211 | 205 |
ghc-regex-pcre-devel |
Also available in: Unified diff