diff options
author | Alberto Ruiz <aruiz@um.es> | 2007-11-04 20:09:26 +0000 |
---|---|---|
committer | Alberto Ruiz <aruiz@um.es> | 2007-11-04 20:09:26 +0000 |
commit | 130093b52ac22a2932c0d9ac0448349428d3eaac (patch) | |
tree | 239702d8b94dffd2207cca99ef6bc7b3687fe9bd /README | |
parent | bd0949d9aac35b4cf12b0f42e41390bb4a9c21b8 (diff) |
installation instructions
Diffstat (limited to 'README')
-rw-r--r-- | README | 57 |
1 files changed, 47 insertions, 10 deletions
@@ -3,10 +3,33 @@ A simple scientific library for Haskell | |||
3 | 3 | ||
4 | REQUIREMENTS | 4 | REQUIREMENTS |
5 | 5 | ||
6 | 1) GNU Scientific Library (http://www.gnu.org/software/gsl) development packages | 6 | Development packages of: |
7 | for your system (typically "gsl" and "gsl-devel"). | ||
8 | 7 | ||
9 | 2) ATLAS BLAS AND LAPACK (http://www.netlib.org/lapack). Usually included with GNU-Octave. | 8 | 1) GNU Scientific Library (http://www.gnu.org/software/gsl) |
9 | |||
10 | 2) BLAS and LAPACK (http://www.netlib.org/lapack) | ||
11 | |||
12 | 3) ATLAS (recommended) (http://math-atlas.sourceforge.net/) | ||
13 | |||
14 | For example, in Ubuntu Linux we need: | ||
15 | |||
16 | - libgsl0-dev | ||
17 | - refblas3-dev | ||
18 | - lapack3-dev | ||
19 | - atlas3-base-dev | ||
20 | |||
21 | You can also install an atlas version specifically tuned | ||
22 | for your machine (e.g., atlas3-sse2-dev, atlas3-3dnow-dev, etc.). | ||
23 | However, do not install atlas3-sse2-dev on ubuntu 6.06 Dapper | ||
24 | (see the TESTS section below). | ||
25 | |||
26 | The following packages are used for simple graphics: | ||
27 | |||
28 | - gnuplot | ||
29 | - imagemagick | ||
30 | |||
31 | It is also a good idea to install GNU-Octave to check | ||
32 | that the results obtained by this library are correct... | ||
10 | 33 | ||
11 | INSTALLATION | 34 | INSTALLATION |
12 | 35 | ||
@@ -17,16 +40,28 @@ $ runhaskell Setup.lhs install --user | |||
17 | 40 | ||
18 | See below for installation on Windows. | 41 | See below for installation on Windows. |
19 | 42 | ||
20 | USING ATLAS | 43 | TESTS |
21 | 44 | ||
22 | $ ln -s /usr/lib/atlas/libblas.so.3.0 $HOME/lib/hssl-0.1/ghc-6.6.1/libcblas.so | 45 | $ runhaskell examples/tests |
23 | $ ln -s /usr/lib/atlas/liblapack.so.3.0 $HOME/lib/hssl-0.1/ghc-6.6.1/liblapack.so | ||
24 | 46 | ||
25 | (More info in the tutorial, available from the web page of the project.) | 47 | Additional tests with big matrices (taking a few minutes): |
26 | 48 | ||
27 | TESTS | 49 | $ runhaskell examples/tests --big |
50 | |||
51 | NOTE: On Ubuntu 6.06 LTS (Dapper) atlas3-sse2-dev (3.6.0-20) | ||
52 | produces segmentation faults when working with big matrices | ||
53 | on compiled programs. To expose the problem: | ||
54 | |||
55 | $ cd examples | ||
56 | $ ghc --make -O tests.hs | ||
57 | $ ./tests --big | ||
28 | 58 | ||
29 | $ runhaskell examples/tests.hs | 59 | If this crashes, just uninstall atlas3-sse2 (atlas3-base-dev will be used). |
60 | Fortunately, atlas3-sse2-dev seems to work well on Ubuntu 7.10 Gutsy. | ||
61 | |||
62 | A similar problem was reported at: | ||
63 | |||
64 | http://article.gmane.org/gmane.linux.debian.devel.bugs.general/323065 | ||
30 | 65 | ||
31 | EXAMPLES | 66 | EXAMPLES |
32 | 67 | ||
@@ -75,7 +110,7 @@ There are only minor API changes: | |||
75 | 110 | ||
76 | Old GSLHaskell code will work with small modifications. | 111 | Old GSLHaskell code will work with small modifications. |
77 | 112 | ||
78 | INSTALLATION ON WINDOWS | 113 | INSTALLATION ON WINDOWS (FIXME) |
79 | 114 | ||
80 | 1) Download the developer files gsl-1.8-lib.zip from | 115 | 1) Download the developer files gsl-1.8-lib.zip from |
81 | http://gnuwin32.sourceforge.net/packages/gsl.htm | 116 | http://gnuwin32.sourceforge.net/packages/gsl.htm |
@@ -124,3 +159,5 @@ I thank Henning Thielemann and all the people in the Haskell mailing lists for t | |||
124 | - Pedro E. López de Teruel fixed the interface to lapack. | 159 | - Pedro E. López de Teruel fixed the interface to lapack. |
125 | 160 | ||
126 | - Antti Siira discovered a bug in the plotting functions. | 161 | - Antti Siira discovered a bug in the plotting functions. |
162 | |||
163 | - Paulo Tanimoto helped to fix the configuration of the required libraries. | ||