summaryrefslogtreecommitdiff
path: root/INSTALL
blob: 8711ed582a5d47a41d4943044b22f33526c965c7 (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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
-----------------------------------------
 A simple scientific library for Haskell
-----------------------------------------

INSTALLATION

Recommended method (ok in 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 with 2009.2.0.2).

2) Download and uncompress in a temporary location the following file:

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

   It contains a gsl folder, and four DLL's.

3) Move the gsl folder to

   C:\Program Files\Haskell Platform\2009.2.0.2\include

4) Move the four DLL's to any folder without spaces in the path, e.g.:

   C:\path\to\dll

5) Download and uncompress hmatrix-x.y.z.tar.gz from Hackage:

   http://hackage.haskell.org/package/hmatrix

6) Edit hmatrix.cabal:

     line 17:      build-type:         Custom
     change to:    build-type:         Simple

     and at the end of the file add:

        extra-libraries: libgsl-0 blas lapack
        extra-lib-dirs: C:\path\to\dll

7) Open a terminal, cd to the hmatrix folder, and run

   > cabal install

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

   > runhaskell examples\tests.hs

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