forked from sweirich/haskelltester
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
47 lines (37 loc) · 1.15 KB
/
setup.sh
File metadata and controls
47 lines (37 loc) · 1.15 KB
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
# This script is derived from Eisenberg's CS350 hw 03 autograder
#
# It installs GHC in the virtual box as well as any additional libraries.
# Everything is setup up via cabal v1 global installation
#
apt-get update
apt-get -y install gcc make libnuma-dev libgmp10 libgmp-dev
# from https://github.com/haskell/ghcup/
echo "Getting ghcup"
mkdir -p ~/.ghcup/bin
curl https://raw.githubusercontent.com/haskell/ghcup/master/ghcup > ~/.ghcup/bin/ghcup
chmod +x ~/.ghcup/bin/ghcup
echo "ghcup gotten"
export PATH=$HOME/.cabal/bin:$HOME/.ghcup/bin:$PATH
echo "===>>Installing ghc"
ghcup install
ghcup set
ghcup install-cabal
echo "===>>Done installing ghc"
ghc --version
cabal --version
cabal update
cabal -j1 v1-install alex
cabal -j1 v1-install happy
echo "===>>Done installing alex/happy"
cabal -j1 v1-install HUnit QuickCheck hlint
cabal -j1 v1-install hlint
# -j1 there is needed to that Gradescope doesn't kill us for being a hog
echo "===>>Done installing system packages"
cd /autograder/source/gradescope
cabal -j1 v1-install
echo "===>>Done installing gradescope utilities"
# Output version information
ghc --version
cabal --version
ghc-pkg list
echo "===>>All set up"