summaryrefslogtreecommitdiff
path: root/INSTALL
blob: 2d292b2c389b19ca6e1779f17a2f1b62b1a08ce8 (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
37
38
39
40
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 2011.2.0.1)

   > cabal update

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

   http://perception.inf.um.es/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 28 change build-type to "Simple", and then

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

    It may be necessary to put the dlls in the search path.

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.