diff options
author | Alberto Ruiz <aruiz@um.es> | 2010-03-29 17:26:23 +0000 |
---|---|---|
committer | Alberto Ruiz <aruiz@um.es> | 2010-03-29 17:26:23 +0000 |
commit | bc5cb922434daef2e4e1dd910479d2c4af37b44c (patch) | |
tree | 85be50af523229589d979a5fcf4cbd9bc10909ee | |
parent | 47a3c55318a7eb5fa131c28a6548ed8643e6d6d1 (diff) |
updated INSTALL file
-rw-r--r-- | INSTALL | 28 |
1 files changed, 13 insertions, 15 deletions
@@ -13,29 +13,27 @@ Detailed installation instructions: | |||
13 | 13 | ||
14 | INSTALLATION ON WINDOWS ---------------------------------------- | 14 | INSTALLATION ON WINDOWS ---------------------------------------- |
15 | 15 | ||
16 | 1) Install a recent ghc (e.g. ghc-6.10.3) | 16 | 1) Install the Haskell Platform (tested with 2009.2.0.2). |
17 | 17 | ||
18 | 2) Install cabal-install. A binary for windows can be obtained from: | 18 | 2) Download and uncompress in a temporary location the following file: |
19 | 19 | ||
20 | http://www.haskell.org/cabal/release/cabal-install-0.6.2/cabal.exe | 20 | http://code.haskell.org/hmatrix/gsl-lapack-windows.zip |
21 | |||
22 | Put it somewhere in the path, for instance in c:\ghc\ghc-6.10.3\bin | ||
23 | 21 | ||
24 | 3) Download and uncompress in a temporary location the following file: | 22 | It contains a gsl folder, and four DLL's. |
25 | 23 | ||
26 | http://code.haskell.org/hmatrix/gsl-lapack-windows.zip | 24 | 3) Move the gsl folder to |
27 | 25 | ||
28 | It contains a folder, gsl, and four DLL's. | 26 | C:\Program Files\Haskell Platform\2009.2.0.2\include |
29 | 27 | ||
30 | 4) Move the gsl folder to C:\ghc\ghc-6.10.3\include | 28 | 4) Move the four DLL's to any folder without spaces in the path, e.g.: |
31 | 29 | ||
32 | 5) Move the four DLL's to C:\ghc\ghc-6.10.3\bin | 30 | C:\path\to\dll |
33 | 31 | ||
34 | 6) Download and uncompress hmatrix-x.y.z.tar.gz from Hackage: | 32 | 5) Download and uncompress hmatrix-x.y.z.tar.gz from Hackage: |
35 | 33 | ||
36 | http://hackage.haskell.org/package/hmatrix | 34 | http://hackage.haskell.org/package/hmatrix |
37 | 35 | ||
38 | 7) Edit hmatrix.cabal: | 36 | 6) Edit hmatrix.cabal: |
39 | 37 | ||
40 | line 17: build-type: Custom | 38 | line 17: build-type: Custom |
41 | change to: build-type: Simple | 39 | change to: build-type: Simple |
@@ -43,13 +41,13 @@ INSTALLATION ON WINDOWS ---------------------------------------- | |||
43 | and at the end of the file add: | 41 | and at the end of the file add: |
44 | 42 | ||
45 | extra-libraries: libgsl-0 blas lapack | 43 | extra-libraries: libgsl-0 blas lapack |
46 | extra-lib-dirs: c:\ghc\ghc-6.10.3\bin | 44 | extra-lib-dirs: C:\path\to\dll |
47 | 45 | ||
48 | 8) Open a terminal, cd to the hmatrix folder, and run | 46 | 7) Open a terminal, cd to the hmatrix folder, and run |
49 | 47 | ||
50 | > cabal install | 48 | > cabal install |
51 | 49 | ||
52 | 9) If everything is ok we can run the tests: | 50 | 8) If everything is ok we can run the tests: |
53 | 51 | ||
54 | > runhaskell examples\tests.hs | 52 | > runhaskell examples\tests.hs |
55 | 53 | ||