diff options
Diffstat (limited to 'INSTALL')
-rw-r--r-- | INSTALL | 58 |
1 files changed, 58 insertions, 0 deletions
@@ -0,0 +1,58 @@ | |||
1 | ----------------------------------------- | ||
2 | A simple scientific library for Haskell | ||
3 | ----------------------------------------- | ||
4 | |||
5 | INSTALLATION | ||
6 | |||
7 | Recommended method: | ||
8 | $ sudo apt-get install libgsl0-dev refblas3-dev lapack3-dev atlas3-[your arch]-dev | ||
9 | $ cabal install hmatrix | ||
10 | |||
11 | Detailed installation instructions: | ||
12 | http://www.hmatrix.googlepages.com/installation | ||
13 | |||
14 | INSTALLATION ON WINDOWS ---------------------------------------- | ||
15 | |||
16 | 1) Download the developer files gsl-1.8-lib.zip from | ||
17 | http://gnuwin32.sourceforge.net/packages/gsl.htm | ||
18 | and copy the gsl headers folder (under include) to: | ||
19 | C:\ghc\ghc.6.x.1\include | ||
20 | These headers are also available from: | ||
21 | http://perception.inf.um.es/~aruiz/darcs/hmatrix/gsl.zip | ||
22 | |||
23 | 2) Copy libgsl.dll, libcblas.dll (from the binaries package gsl-1.8.bin.zip) | ||
24 | and liblapack.dll (borrowed from the R system) to the ghc folder, e.g.: | ||
25 | C:\ghc\ghc-6.x.x. | ||
26 | Rename libcblas.dll to libblas.dll. | ||
27 | They are needed to compile programs. | ||
28 | These three dlls are available from: | ||
29 | http://perception.inf.um.es/~aruiz/darcs/hmatrix/dll1.zip | ||
30 | |||
31 | 2.5) Remove the following functions from the export list of | ||
32 | lib/Numeric/GSL/Special/Ellint.hs: | ||
33 | ellint_Pcomp_e, ellint_Pcomp, ellint_Dcomp_e, ellint_Dcomp | ||
34 | |||
35 | 3) Install the package as usual: | ||
36 | runhaskell Setup.lhs configure | ||
37 | runhaskell Setup.lhs build | ||
38 | runhaskell Setup.lhs install | ||
39 | |||
40 | 3.5) If configure cannot find ld please see: | ||
41 | http://article.gmane.org/gmane.comp.lang.haskell.cafe/32025 | ||
42 | |||
43 | 4) Copy the dlls available from: | ||
44 | http://perception.inf.um.es/~aruiz/darcs/hmatrix/dll2.zip | ||
45 | to the working directory or C:\windows\system | ||
46 | They are required to run the programs and ghci. | ||
47 | |||
48 | 5) run the tests | ||
49 | |||
50 | Unfortunately the lapack dll supplied by the R system does not include | ||
51 | zgels_, zgelss_, and zgees_, so the functions depending on them | ||
52 | (linearSolveLS, linearSolveSVD, and schur for complex data) | ||
53 | will produce a "non supported in this OS" runtime error. | ||
54 | |||
55 | If you find an alternative free and complete lapack.dll which works well | ||
56 | for this system please let me know. | ||
57 | |||
58 | The examples using graphics do not yet work in windows. | ||