summaryrefslogtreecommitdiff
path: root/INSTALL
blob: 91397d3999a3dddd0cb6f856e8949e1b0ea91da2 (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
-----------------------------------------
 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 hmatrix-x.y.z.tar.gz from Hackage:

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

3) Download and uncompress the following file into the hmatrix
   directory, into a subdirectory named gsl-lapack-windows:

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

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

4) Edit hmatrix.cabal:

     line 17:      build-type:         Custom
     change to:    build-type:         Simple
   
5) Open a terminal, cd to the hmatrix folder, and run

   > cabal install

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

   > runhaskell examples\tests.hs

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