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
23apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
24add-apt-repository -y --keyserver hkp://keyserver.ubuntu.com:80 'deb http://download.mono-project.com/repo/debian wheezy main'
25add-apt-repository -y --keyserver hkp://keyserver.ubuntu.com:80 'deb http://download.mono-project.com/repo/debian wheezy-apache24-compat main'
26add-apt-repository -y --keyserver hkp://keyserver.ubuntu.com:80 'deb http://download.mono-project.com/repo/debian wheezy-libjpeg62-compat main'
38 ghc-$GHCVER-htmldocs \
51 libcurl4-openssl-dev \
61 libgirepository1.0-dev \
71 libgtksourceview-3.0-dev \
77 libjavascriptcoregtk-4.0-dev \
114 libwebkitgtk-3.0-dev \
131 python-mpltoolkits.basemap \
145locale-gen en_US.UTF-8
147curl -sSL https://get.haskellstack.org/ | sh
149# Put documentation where we expect it
150mv /opt/ghc/$GHCVER/share/doc/ghc-$GHCVER/ /opt/ghc/$GHCVER/share/doc/ghc
152# Buggy versions of ld.bfd fail to link some Haskell packages:
153# https://sourceware.org/bugzilla/show_bug.cgi?id=17689. Gold is
154# faster anyways and uses less RAM.
155update-alternatives --install "/usr/bin/ld" "ld" "/usr/bin/ld.gold" 20
156update-alternatives --install "/usr/bin/ld" "ld" "/usr/bin/ld.bfd" 10
158# GHC requires a specific LLVM version on the system PATH for its LLVM backend.
159# This version is tracked here:
160# https://ghc.haskell.org/trac/ghc/wiki/Commentary/Compiler/Backends/LLVM/Installing
162# GHC 8.0 requires LLVM 3.7 tools (specifically, llc-3.7 and opt-3.7).
163update-alternatives --install "/usr/bin/llc" "llc" "/usr/bin/llc-3.7" 50
164update-alternatives --install "/usr/bin/opt" "opt" "/usr/bin/opt-3.7" 50
166# install ocilib dependencies then build and install ocilib
168 && wget https://storage.googleapis.com/oracle.fpinsight.com/instantClient/oracle-instantclient12.1-basiclite_12.1.0.2.0-2_amd64.deb \
169 && dpkg -i oracle-instantclient12.1-basiclite_12.1.0.2.0-2_amd64.deb \
170 && rm -f oracle-instantclient12.1-basiclite_12.1.0.2.0-2_amd64.deb \
171 && wget https://storage.googleapis.com/oracle.fpinsight.com/instantClient/oracle-instantclient12.1-devel_12.1.0.2.0-2_amd64.deb \
172 && dpkg -i oracle-instantclient12.1-devel_12.1.0.2.0-2_amd64.deb \
173 && rm -f oracle-instantclient12.1-devel_12.1.0.2.0-2_amd64.deb \
174 && wget https://github.com/vrogier/ocilib/archive/v4.3.2.tar.gz \
175 && tar xvf v4.3.2.tar.gz \
176 && cd /tmp/ocilib-4.3.2 \
177 && ./configure --with-oracle-import=linkage \
178 --with-oracle-charset=ansi \
179 --with-oracle-headers-path=/usr/include/oracle/12.1/client64 \
180 --with-oracle-lib-path=/usr/lib/oracle/12.1/client64/lib \
184 && rm -rf /tmp/ocilib-4.3.2 \
185 && echo "/usr/local/lib" > /etc/ld.so.conf.d/usr-local.conf \
186 && echo "/usr/lib/oracle/12.1/client64/lib" > /etc/ld.so.conf.d/oracle-client.conf \
189# Add JDK to system paths.
190echo "/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/server/" > /etc/ld.so.conf.d/openjdk.conf \
193# llvm-4.0 for llvm-hs (separate since it needs wget)
194wget -O - http://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add - \
195 && add-apt-repository "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-4.0 main" \
197 && apt-get install -y llvm-4.0
199# Install version 3 of the protobuf compiler. (The `protobuf-compiler` package only
200# supports version 2.)
201curl -OL https://github.com/google/protobuf/releases/download/v3.3.0/protoc-3.3.0-linux-x86_64.zip \
202 && sudo unzip -o protoc-3.3.0-linux-x86_64.zip -d /usr bin/protoc \
203 && rm -f protoc-3.3.0-linux-x84_64.zip
205# Install the TensorFlow C API.
206curl https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-cpu-linux-x86_64-1.1.0.tar.gz > libtensorflow.tar.gz \
207 && sudo tar zxf libtensorflow.tar.gz -C /usr \
208 && rm libtensorflow.tar.gz \
211## non-free repo for mediabus-fdk-aac
212#apt-add-repository multiverse \
214# && 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