This repository has been archived by the owner on Feb 3, 2021. It is now read-only.
forked from audreyt/Pugs.hs
-
Notifications
You must be signed in to change notification settings - Fork 17
/
INSTALL
58 lines (37 loc) · 1.68 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
The current recommended way to build Pugs is via cabal-install with the
Haskell Platform. The steps are:
0. Download and install the Haskell Platform:
http://hackage.haskell.org/platform/
Alternately, one can also install only the GHC compiler, and manually set up
the following packages (in this order):
http://hackage.haskell.org/cgi-bin/hackage-scripts/package/Cabal
http://hackage.haskell.org/cgi-bin/hackage-scripts/package/HTTP
http://hackage.haskell.org/cgi-bin/hackage-scripts/package/zlib
http://hackage.haskell.org/cgi-bin/hackage-scripts/package/cabal-install
The instructions contained in the README file of Cabal contain more detailed
setup instructions, which should work for all the packages above.
(But then again, please consider simply installing the Haskell Platform. :-))
1. Install ncurses and libperl dependencies:
# For Debian/Ubuntu
sudo apt-get install libncurses-dev libperl-dev
2. Type the following commands:
cabal update
cabal install Pugs
...and it's done!
To build an optimized Pugs for benchmarking or smoke testing, replace the
second command with:
cabal install -O2 Pugs
(Unix-like systems might need `sudo` or `cabal install -p` to satisfy
permission requirements.)
3. To upgrade the current Pugs installation to the latest released version
on Hackage, the same two lines of commands would work:
cabal update
cabal install Pugs
4. To upgrade the current Pugs installation to the version in the repository,
simply build the repository copy like this:
cd Pugs
cabal install
Cheers!
鳳
PS: For installing Pugs on Cygwin via Cabal, please refer to this note:
http://use.perl.org/~rurban/journal/36897