Revision 5a5a64c6
b/INSTALL | ||
---|---|---|
144 | 144 |
- `bytestring <http://hackage.haskell.org/package/bytestring>`_ and |
145 | 145 |
`utf8-string <http://hackage.haskell.org/package/utf8-string>`_ |
146 | 146 |
libraries; these usually come with the GHC compiler |
147 |
- `text <http://hackage.haskell.org/package/text>`_ |
|
147 | 148 |
- `deepseq <http://hackage.haskell.org/package/deepseq>`_ |
148 | 149 |
- `curl <http://hackage.haskell.org/package/curl>`_, tested with |
149 | 150 |
versions 1.3.4 and above |
150 | 151 |
- `hslogger <http://software.complete.org/hslogger>`_, version 1.1 and |
151 | 152 |
above (note that Debian Squeeze only has version 1.0.9) |
153 |
- `hinotify <http://hackage.haskell.org/package/hinotify>`_, tested with |
|
154 |
version 0.3.2 |
|
155 |
- `Crypto <http://hackage.haskell.org/package/Crypto>`_, tested with |
|
156 |
version 4.2.4 |
|
157 |
- `regex-pcre <http://hackage.haskell.org/package/regex-pcre>`_, |
|
158 |
bindings for the ``pcre`` library |
|
159 |
- `attoparsec <http://hackage.haskell.org/package/attoparsec>`_ |
|
160 |
- `vector <http://hackage.haskell.org/package/vector>`_ |
|
161 |
- `process <http://hackage.haskell.org/package/process>`_, version 1.0.1.1 and |
|
162 |
above |
|
152 | 163 |
|
153 | 164 |
Some of these are also available as package in Debian/Ubuntu:: |
154 | 165 |
|
155 | 166 |
$ apt-get install ghc libghc-json-dev libghc-network-dev \ |
156 | 167 |
libghc-parallel-dev libghc-deepseq-dev \ |
157 | 168 |
libghc-utf8-string-dev libghc-curl-dev \ |
158 |
libghc-hslogger-dev |
|
169 |
libghc-hslogger-dev \ |
|
170 |
libghc-crypto-dev libghc-text-dev \ |
|
171 |
libghc-hinotify-dev libghc-regex-pcre-dev \ |
|
172 |
libpcre3-dev \ |
|
173 |
libghc-attoparsec-dev libghc-vector-dev |
|
159 | 174 |
|
160 | 175 |
Or in older versions of these distributions (using GHC 6.x):: |
161 | 176 |
|
... | ... | |
166 | 181 |
In Fedora, some of them are available via packages as well:: |
167 | 182 |
|
168 | 183 |
$ yum install ghc ghc-json-devel ghc-network-devel \ |
169 |
ghc-parallel-devel ghc-deepseq-devel |
|
184 |
ghc-parallel-devel ghc-deepseq-devel \ |
|
185 |
ghc-hslogger-devel ghc-text-devel \ |
|
186 |
ghc-regex-pcre-devel |
|
170 | 187 |
|
171 |
If using a distribution which does not provide them, first install |
|
172 |
the Haskell platform. You can also install ``cabal`` manually:: |
|
188 |
The most recent Fedora doesn't provide ``crypto``, ``inotify``. So these |
|
189 |
need to be installed using ``cabal``. |
|
190 |
|
|
191 |
If using a distribution which does not provide these libraries, first |
|
192 |
install the Haskell platform. You can also install ``cabal`` manually:: |
|
173 | 193 |
|
174 | 194 |
$ apt-get install cabal-install |
175 | 195 |
$ cabal update |
176 | 196 |
|
177 |
Then install the additional libraries (only the ones not available in your |
|
178 |
distribution packages) via ``cabal``:: |
|
197 |
Then install the additional native libraries:: |
|
198 |
|
|
199 |
$ apt-get install libpcre3-dev libcurl4-openssl-dev |
|
200 |
|
|
201 |
And finally the libraries required for building the packages (only the |
|
202 |
ones not available in your distribution packages) via ``cabal``:: |
|
179 | 203 |
|
180 |
$ cabal install json network parallel utf8-string curl hslogger |
|
204 |
$ cabal install json network parallel utf8-string curl hslogger \ |
|
205 |
Crypto text hinotify==0.3.2 regex-pcre \ |
|
206 |
attoparsec vector |
|
181 | 207 |
|
182 | 208 |
Haskell optional features |
183 | 209 |
~~~~~~~~~~~~~~~~~~~~~~~~~ |
184 | 210 |
|
185 | 211 |
Optionally, more functionality can be enabled if your build machine has |
186 |
a few more Haskell libraries enabled: the ``ganeti-confd`` and
|
|
187 |
``ganeti-luxid`` daemon (``--enable-confd``) and the monitoring daemon
|
|
188 |
(``--enable-mond``). The list of extra dependencies for these is:
|
|
212 |
a few more Haskell libraries enabled: the ``ganeti-confd`` daemon
|
|
213 |
(``--enable-confd``) and the monitoring daemon (``--enable-mond``).
|
|
214 |
The extra dependency for these is:
|
|
189 | 215 |
|
190 |
- `Crypto <http://hackage.haskell.org/package/Crypto>`_, tested with |
|
191 |
version 4.2.4 |
|
192 |
- `text <http://hackage.haskell.org/package/text>`_ |
|
193 |
- `hinotify <http://hackage.haskell.org/package/hinotify>`_, tested with |
|
194 |
version 0.3.2 |
|
195 |
- `regex-pcre <http://hackage.haskell.org/package/regex-pcre>`_, |
|
196 |
bindings for the ``pcre`` library |
|
197 |
- `attoparsec <http://hackage.haskell.org/package/attoparsec>`_ |
|
198 |
- `vector <http://hackage.haskell.org/package/vector>`_ |
|
199 | 216 |
- `snap-server` <http://hackage.haskell.org/package/snap-server>`_, version |
200 | 217 |
0.8.1 and above. |
201 |
- `process <http://hackage.haskell.org/package/process>`_, version 1.0.1.1 and |
|
202 |
above |
|
203 | 218 |
|
204 |
These libraries are available in Debian Wheezy (but not in Squeeze), so you
|
|
219 |
This library is available in Debian Wheezy (but not in Squeeze), so you
|
|
205 | 220 |
can use either apt:: |
206 | 221 |
|
207 |
$ apt-get install libghc-crypto-dev libghc-text-dev \ |
|
208 |
libghc-hinotify-dev libghc-regex-pcre-dev \ |
|
209 |
libpcre3-dev \ |
|
210 |
libghc-attoparsec-dev libghc-vector-dev \ |
|
211 |
libghc-snap-server-dev |
|
222 |
$ apt-get install libghc-snap-server-dev |
|
212 | 223 |
|
213 |
or ``cabal``, after installing a required non-Haskell dependency::
|
|
224 |
or ``cabal``:: |
|
214 | 225 |
|
215 |
$ apt-get install libpcre3-dev libcurl4-openssl-dev |
|
216 |
$ cabal install Crypto text hinotify==0.3.2 regex-pcre \ |
|
217 |
attoparsec vector snap-server |
|
226 |
$ cabal install snap-server |
|
218 | 227 |
|
219 |
to install them.
|
|
228 |
to install it.
|
|
220 | 229 |
|
221 | 230 |
In case you still use ghc-6.12, note that ``cabal`` would automatically try to |
222 | 231 |
install newer versions of some of the libraries snap-server depends on, that |
... | ... | |
227 | 236 |
hashable==1.1.2.0 case-insensitive==0.3 parsec==3.0.1 \ |
228 | 237 |
network==2.3 snap-server==0.8.1 |
229 | 238 |
|
230 |
The most recent Fedora doesn't provide ``crypto``, ``inotify``. So these |
|
231 |
need to be installed using ``cabal``, if desired. The other packages can |
|
232 |
be installed via ``yum``:: |
|
233 |
|
|
234 |
$ yum install ghc-hslogger-devel ghc-text-devel \ |
|
235 |
ghc-regex-pcre-devel |
|
236 |
|
|
237 | 239 |
.. _cabal-note: |
238 | 240 |
.. note:: |
239 | 241 |
If one of the cabal packages fails to install due to unfulfilled |
Also available in: Unified diff