summaryrefslogtreecommitdiff
path: root/INSTALL
diff options
context:
space:
mode:
authorAlberto Ruiz <aruiz@um.es>2009-06-04 18:53:55 +0000
committerAlberto Ruiz <aruiz@um.es>2009-06-04 18:53:55 +0000
commitbbc54bf2573ea3631ee436507807dae6c4353bcc (patch)
treeb7db6ae5f4aba50a4bb8d4c584d131e424286be8 /INSTALL
parent6e0dd472ef8c570ec1924ac641e5872db30ac142 (diff)
improved windows installation instructions
Diffstat (limited to 'INSTALL')
-rw-r--r--INSTALL85
1 files changed, 42 insertions, 43 deletions
diff --git a/INSTALL b/INSTALL
index e4c7e12..1a92fa5 100644
--- a/INSTALL
+++ b/INSTALL
@@ -13,46 +13,45 @@ Detailed installation instructions:
13 13
14INSTALLATION ON WINDOWS ---------------------------------------- 14INSTALLATION ON WINDOWS ----------------------------------------
15 15
161) Download the developer files gsl-1.8-lib.zip from 161) 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: 182) 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
232) 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.: 243) 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 304) Move the gsl folder to C:\ghc\ghc-6.10.3\include
312.5) Remove the following functions from the export list of 31
32 lib/Numeric/GSL/Special/Ellint.hs: 325) 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 346) Download and uncompress hmatrix-x.y.z.tar.gz from Hackage:
353) 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 387) Edit hmatrix.cabal:
39 39
403.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
434) 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
485) run the tests 48
49 498) Open a terminal, cd to the hmatrix folder, and run
50Unfortunately the lapack dll supplied by the R system does not include 50
51zgels_, zgelss_, and zgees_, so the functions depending on them 51 > cabal install
52(linearSolveLS, linearSolveSVD, and schur for complex data) 52
53will produce a "non supported in this OS" runtime error. 539) If everything is ok we can run the tests:
54 54
55If you find an alternative free and complete lapack.dll which works well 55 > runhaskell examples\tests.hs
56for this system please let me know. 56
57 57NOTE: The examples using graphics do not yet work in windows.
58The examples using graphics do not yet work in windows.