summaryrefslogtreecommitdiff
path: root/INSTALL
blob: f3bec7f9838e9d683f9062b267602a7a9a45b5ac (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
55
56
57
-----------------------------------------
 A simple scientific library for Haskell
-----------------------------------------

INSTALLATION

Recommended method:
    $ sudo apt-get install libgsl0-dev refblas3-dev lapack3-dev atlas3-[your arch]-dev
    $ cabal install hmatrix

Detailed installation instructions:
    http://www.hmatrix.googlepages.com/installation

INSTALLATION ON WINDOWS ----------------------------------------

1) Install a recent ghc (e.g. ghc-6.10.3)

2) Install cabal-install. A binary for windows can be obtained from:

   http://www.haskell.org/cabal/release/cabal-install-0.6.2/cabal.exe

   Put it somewhere in the path, for instance in c:\ghc\ghc-6.10.3\bin

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

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

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

4) Move the gsl folder to C:\ghc\ghc-6.10.3\include

5) Move the four DLL's to C:\ghc\ghc-6.10.3\bin

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

   http://hackage.haskell.org/cgi-bin/hackage-scripts/package/hmatrix

7) Edit hmatrix.cabal:

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

     line 162:     extra-libraries:
     add:          extra-libraries: libgsl-0 blas lapack

     line 163:     extra-lib-dirs:
     add:          extra-lib-dirs: c:\ghc\ghc-6.10.3\bin

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

   > cabal install

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

   > runhaskell examples\tests.hs

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