Created
July 14, 2012 02:15
-
-
Save tonymorris/3108839 to your computer and use it in GitHub Desktop.
GHC 7.0.4 install for Linux (apt-get)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -e | |
# Base temporary work directory | |
TMP="/tmp" | |
# Glasgow Haskell Compiler version | |
GHCVERSION=7.0.4 | |
ARCH=`uname -m | sed s/i686/i386/` | |
# upgrade GHC | |
if [ ! -e "$HOME/opt/bin/ghc" ] | |
then | |
mkdir -p $HOME/Downloads | |
wget -c --output-document=$HOME/Downloads/ghc-$GHCVERSION-$ARCH-unknown-linux.tar.bz2 http://www.haskell.org/ghc/dist/$GHCVERSION/ghc-$GHCVERSION-$ARCH-unknown-linux.tar.bz2 | |
tar -jxvf $HOME/Downloads/ghc-$GHCVERSION-$ARCH-unknown-linux.tar.bz2 -C $TMP | |
cd $TMP/ghc-$GHCVERSION | |
./configure --prefix=$HOME/opt | |
make install | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment