-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathINSTALL
79 lines (58 loc) · 1.94 KB
/
INSTALL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
CSP₀ library
============
I'll write more detailed notes later. For now, to compile this
package, you need several tools:
To build the source code:
• cmake
• bison
• Boost
• libjudy
To generate the documentation:
• pandoc
It's highly recommended that you perform an out-of-source build.
Decide on values for the following:
SRC_DIR: the top-level “hst” source directory.
BUILD_DIR: the directory where you will perform the build. (It's
fine if this is a subdirectory of ${SRC_DIR}).
PREFIX: the filesystem directory that you want to install into.
This will usually be /usr, /usr/local, ${HOME}, or
something similar.
Then execute the following:
mkdir ${BUILD_DIR}
cd ${BUILD_DIR}
cmake \
-D CMAKE_BUILD_TYPE:string=RELEASE \
-D CMAKE_INSTALL_PREFIX:string=${PREFIX} \
${SRC_DIR}
make
make doc
make test
sudo make install
(You'll obviously only need the “sudo” if you're installing into a
system-wide directory.)
CSPM library
============
To compile the CSPM, you'll need a Haskell compiler and several
libraries. So far we've only tested this on GHC 6.8. If you can get
it to compile using other compilers or GHC versions, we'd love to hear
it!
You'll also need the happy parser generator, and the following
Hackage/Cabal packages:
• array
• base
• containers
• mtl
• QuickCheck
These should all be preinstalled for any reasonably recent Haskell
compiler.
The cspm directory contains a Cabal package description, so you can
use the usual Cabal recipe for compiling and installing the CSPM
portion of the library:
runghc Setup.lhs configure
runghc Setup.lhs build
runghc Setup.lhs test
sudo runghc Setup.lhs install
(substituting “runghc” with “runhaskell” or “runhugs” or something
else if appropriate.)
As with the CSP₀ library, you'll only need the “sudo” if you're
installing into a system-wide directory.