diff options
author | Alberto Ruiz <aruiz@um.es> | 2009-06-04 18:53:55 +0000 |
---|---|---|
committer | Alberto Ruiz <aruiz@um.es> | 2009-06-04 18:53:55 +0000 |
commit | bbc54bf2573ea3631ee436507807dae6c4353bcc (patch) | |
tree | b7db6ae5f4aba50a4bb8d4c584d131e424286be8 /INSTALL | |
parent | 6e0dd472ef8c570ec1924ac641e5872db30ac142 (diff) |
improved windows installation instructions
Diffstat (limited to 'INSTALL')
-rw-r--r-- | INSTALL | 85 |
1 files changed, 42 insertions, 43 deletions
@@ -13,46 +13,45 @@ Detailed installation instructions: | |||
13 | 13 | ||
14 | INSTALLATION ON WINDOWS ---------------------------------------- | 14 | INSTALLATION ON WINDOWS ---------------------------------------- |
15 | 15 | ||
16 | 1) Download the developer files gsl-1.8-lib.zip from | 16 | 1) Install a recent ghc (e.g. ghc-6.10.3) |
17 | http://gnuwin32.sourceforge.net/packages/gsl.htm | 17 | |
18 | and copy the gsl headers folder (under include) to: | 18 | 2) Install cabal-install. A binary for windows can be obtained from: |
19 | C:\ghc\ghc.6.x.1\include | 19 | |
20 | These headers are also available from: | 20 | http://www.haskell.org/cabal/release/cabal-install-0.6.2/cabal.exe |
21 | http://perception.inf.um.es/~aruiz/darcs/hmatrix/gsl.zip | 21 | |
22 | 22 | Put it somewhere in the path, for instance in c:\ghc\ghc-6.10.3\bin | |
23 | 2) Copy libgsl.dll, libcblas.dll (from the binaries package gsl-1.8.bin.zip) | 23 | |
24 | and liblapack.dll (borrowed from the R system) to the ghc folder, e.g.: | 24 | 3) Download and uncompress in a temporary location the following file: |
25 | C:\ghc\ghc-6.x.x. | 25 | |
26 | Rename libcblas.dll to libblas.dll. | 26 | http://code.haskell.org/hmatrix/gsl-lapack-windows.zip |
27 | They are needed to compile programs. | 27 | |
28 | These three dlls are available from: | 28 | It contains a folder, gsl, and four DLL's. |
29 | http://perception.inf.um.es/~aruiz/darcs/hmatrix/dll1.zip | 29 | |
30 | 30 | 4) Move the gsl folder to C:\ghc\ghc-6.10.3\include | |
31 | 2.5) Remove the following functions from the export list of | 31 | |
32 | lib/Numeric/GSL/Special/Ellint.hs: | 32 | 5) Move the four DLL's to C:\ghc\ghc-6.10.3\bin |
33 | ellint_Pcomp_e, ellint_Pcomp, ellint_Dcomp_e, ellint_Dcomp | 33 | |
34 | 34 | 6) Download and uncompress hmatrix-x.y.z.tar.gz from Hackage: | |
35 | 3) Install the package as usual: | 35 | |
36 | runhaskell Setup.lhs configure | 36 | http://hackage.haskell.org/cgi-bin/hackage-scripts/package/hmatrix |
37 | runhaskell Setup.lhs build | 37 | |
38 | runhaskell Setup.lhs install | 38 | 7) Edit hmatrix.cabal: |
39 | 39 | ||
40 | 3.5) If configure cannot find ld please see: | 40 | line 17: build-type: Custom |
41 | http://article.gmane.org/gmane.comp.lang.haskell.cafe/32025 | 41 | change to: build-type: Simple |
42 | 42 | ||
43 | 4) Copy the dlls available from: | 43 | line 160: extra-libraries: |
44 | http://perception.inf.um.es/~aruiz/darcs/hmatrix/dll2.zip | 44 | add: extra-libraries: libgls-0 blas lapack |
45 | to the working directory or C:\windows\system | 45 | |
46 | They are required to run the programs and ghci. | 46 | line 161: extra-lib-dirs: |
47 | 47 | add: extra-lib-dirs: c:\ghc\ghc-6.10.3\bin | |
48 | 5) run the tests | 48 | |
49 | 49 | 8) Open a terminal, cd to the hmatrix folder, and run | |
50 | Unfortunately the lapack dll supplied by the R system does not include | 50 | |
51 | zgels_, zgelss_, and zgees_, so the functions depending on them | 51 | > cabal install |
52 | (linearSolveLS, linearSolveSVD, and schur for complex data) | 52 | |
53 | will produce a "non supported in this OS" runtime error. | 53 | 9) If everything is ok we can run the tests: |
54 | 54 | ||
55 | If you find an alternative free and complete lapack.dll which works well | 55 | > runhaskell examples\tests.hs |
56 | for this system please let me know. | 56 | |
57 | 57 | NOTE: The examples using graphics do not yet work in windows. | |
58 | The examples using graphics do not yet work in windows. | ||