3# Work in progress: create a list of commands necessary to get Stackage
4# up-and-running on a freshly installed Debian-based system (including Ubuntu).
7# wget -O - https://raw.github.com/fpco/stackage/master/debian-bootstrap.sh | bash -ex
9# NOTE: Requires that GHC and Cabal are installed and on your PATH. For
11# http://www.stackage.org/install
15mkdir /home/stackage -p
18export DEBIAN_FRONTEND=noninteractive
20apt-get install -y software-properties-common
22add-apt-repository ppa:hvr/ghc -y
23add-apt-repository -y ppa:marutter/rrutter
24# not sure what this was needed for
25#add-apt-repository -y ppa:openstack-ubuntu-testing/icehouse
31apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 575159689BEFB442
32echo 'deb http://download.fpcomplete.com/ubuntu xenial main'|tee /etc/apt/sources.list.d/fpco.list
38 ghc-$GHCVER-htmldocs \
51 libcurl4-openssl-dev \
59 libgirepository1.0-dev \
69 libgtksourceview-3.0-dev \
98 libwebkitgtk-3.0-dev \
122# Put documentation where we expect it
123mv /opt/ghc/$GHCVER/share/doc/ghc-$GHCVER/ /opt/ghc/$GHCVER/share/doc/ghc
125# Buggy versions of ld.bfd fail to link some Haskell packages:
126# https://sourceware.org/bugzilla/show_bug.cgi?id=17689. Gold is
127# faster anyways and uses less RAM.
128update-alternatives --install "/usr/bin/ld" "ld" "/usr/bin/ld.gold" 20
129update-alternatives --install "/usr/bin/ld" "ld" "/usr/bin/ld.bfd" 10
131# GHC requires a specific LLVM version on the system PATH for its LLVM backend.
132# This version is tracked here:
133# https://ghc.haskell.org/trac/ghc/wiki/Commentary/Compiler/Backends/LLVM/Installing
135# GHC 8.0 requires LLVM 3.7 tools (specifically, llc-3.7 and opt-3.7).
136update-alternatives --install "/usr/bin/llc" "llc" "/usr/bin/llc-3.7" 50
137update-alternatives --install "/usr/bin/opt" "opt" "/usr/bin/opt-3.7" 50
139# install ocilib dependencies then build and install ocilib
141 && wget https://storage.googleapis.com/oracle.fpinsight.com/instantClient/oracle-instantclient12.1-basiclite_12.1.0.2.0-2_amd64.deb \
142 && dpkg -i oracle-instantclient12.1-basiclite_12.1.0.2.0-2_amd64.deb \
143 && rm -f oracle-instantclient12.1-basiclite_12.1.0.2.0-2_amd64.deb \
144 && wget https://storage.googleapis.com/oracle.fpinsight.com/instantClient/oracle-instantclient12.1-devel_12.1.0.2.0-2_amd64.deb \
145 && dpkg -i oracle-instantclient12.1-devel_12.1.0.2.0-2_amd64.deb \
146 && rm -f oracle-instantclient12.1-devel_12.1.0.2.0-2_amd64.deb \
147 && wget https://github.com/vrogier/ocilib/archive/v4.2.1.tar.gz \
148 && tar xvf v4.2.1.tar.gz \
149 && cd /tmp/ocilib-4.2.1 \
150 && ./configure --with-oracle-import=linkage \
151 --with-oracle-charset=ansi \
152 --with-oracle-headers-path=/usr/include/oracle/12.1/client64 \
153 --with-oracle-lib-path=/usr/lib/oracle/12.1/client64/lib \
157 && rm -rf /tmp/ocilib-4.2.1 \
158 && echo "/usr/local/lib" > /etc/ld.so.conf.d/usr-local.conf \
159 && echo "/usr/lib/oracle/12.1/client64/lib" > /etc/ld.so.conf.d/oracle-client.conf \
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list