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
17export DEBIAN_FRONTEND=noninteractive
19apt-get install -y software-properties-common
21add-apt-repository ppa:hvr/ghc -y
22add-apt-repository -y ppa:marutter/rrutter
32 ghc-$GHCVER-htmldocs \
47 libcurl4-openssl-dev \
56 libgirepository1.0-dev \
66 libgtksourceview-3.0-dev \
103 libwebkitgtk-3.0-dev \
120 python-mpltoolkits.basemap \
133locale-gen en_US.UTF-8
135curl -sSL https://get.haskellstack.org/ | sh
137# Put documentation where we expect it
138mv /opt/ghc/$GHCVER/share/doc/ghc-$GHCVER/ /opt/ghc/$GHCVER/share/doc/ghc
140# Buggy versions of ld.bfd fail to link some Haskell packages:
141# https://sourceware.org/bugzilla/show_bug.cgi?id=17689. Gold is
142# faster anyways and uses less RAM.
143update-alternatives --install "/usr/bin/ld" "ld" "/usr/bin/ld.gold" 20
144update-alternatives --install "/usr/bin/ld" "ld" "/usr/bin/ld.bfd" 10
146# GHC requires a specific LLVM version on the system PATH for its LLVM backend.
147# This version is tracked here:
148# https://ghc.haskell.org/trac/ghc/wiki/Commentary/Compiler/Backends/LLVM/Installing
150# GHC 8.0 requires LLVM 3.7 tools (specifically, llc-3.7 and opt-3.7).
151update-alternatives --install "/usr/bin/llc" "llc" "/usr/bin/llc-3.7" 50
152update-alternatives --install "/usr/bin/opt" "opt" "/usr/bin/opt-3.7" 50
154# install ocilib dependencies then build and install ocilib
156 && wget https://storage.googleapis.com/oracle.fpinsight.com/instantClient/oracle-instantclient12.1-basiclite_12.1.0.2.0-2_amd64.deb \
157 && dpkg -i oracle-instantclient12.1-basiclite_12.1.0.2.0-2_amd64.deb \
158 && rm -f oracle-instantclient12.1-basiclite_12.1.0.2.0-2_amd64.deb \
159 && wget https://storage.googleapis.com/oracle.fpinsight.com/instantClient/oracle-instantclient12.1-devel_12.1.0.2.0-2_amd64.deb \
160 && dpkg -i oracle-instantclient12.1-devel_12.1.0.2.0-2_amd64.deb \
161 && rm -f oracle-instantclient12.1-devel_12.1.0.2.0-2_amd64.deb \
162 && wget https://github.com/vrogier/ocilib/archive/v4.3.2.tar.gz \
163 && tar xvf v4.3.2.tar.gz \
164 && cd /tmp/ocilib-4.3.2 \
165 && ./configure --with-oracle-import=linkage \
166 --with-oracle-charset=ansi \
167 --with-oracle-headers-path=/usr/include/oracle/12.1/client64 \
168 --with-oracle-lib-path=/usr/lib/oracle/12.1/client64/lib \
172 && rm -rf /tmp/ocilib-4.3.2 \
173 && echo "/usr/local/lib" > /etc/ld.so.conf.d/usr-local.conf \
174 && echo "/usr/lib/oracle/12.1/client64/lib" > /etc/ld.so.conf.d/oracle-client.conf \
177# Add JDK to system paths.
178echo "/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/server/" > /etc/ld.so.conf.d/openjdk.conf \
181# currently the repo seems broken
182# # llvm-4.0 for llvm-hs (separate since it needs wget)
183# wget -O - http://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add - \
184# && add-apt-repository "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-4.0 main" \
186# && apt-get install -y llvm-4.0
188## non-free repo for mediabus-fdk-aac
189#apt-add-repository multiverse \
191# && apt-get install -y libfdk-aac-dev
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