summaryrefslogtreecommitdiff
path: root/INSTALL
blob: 9d6376110be94b0dafeede941f717a700718122c (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
34
35
36
INSTALLATION

Recommended method (tested on Ubuntu/Debian systems):
    $ sudo apt-get install libgsl0-dev liblapack-dev
    $ cabal install hmatrix

Detailed installation instructions:
    http://code.haskell.org/hmatrix/install.html

INSTALLATION ON WINDOWS

1) Install the Haskell Platform (tested on 2009.2.0.2).

2) Download and unzip the following file into a stable folder %GSL%

   http://code.haskell.org/hmatrix/gsl-lapack-windows.zip

3.a) In a msys shell installation should be fully automatic:

   $ cabal install hmatrix --extra-lib-dir=${GSL} --extra-include-dir=${GSL}

3.b) Alternatively, in a normal windows cmd:

    > cabal unpack hmatrix

    Edit hmatrix.cabal, in line 18 change build-type to "Simple", and then

    > cabal install --extra-lib-dir=%GSL% --extra-include-dir=%GSL%

4) If everything is ok we can run the tests:

   > ghci
   Prelude> Numeric.LinearAlgebra.Tests.runTests 20

NOTE: The examples using graphics do not yet work in windows.