IHaskell/linux-install.sh

50 lines
1.0 KiB
Bash
Executable File

#!/bin/bash
# Installation for Linux (tested on Ubuntu 14.10) from IHaskell repo directory.
# TODO Split out setup for installation from Hackage released versions.
ghc --version >& /dev/null
if [ $? ]; then
true
else
echo "Please install ghc."
fi
cabal --version >& /dev/null
if [ $? ]; then
true
else
echo "Please install Cabal."
fi
# Install IPython.
# python-pip is out of date, causes problems, so we get the latest version
# using easy_install instead.
#sudo apt-get install python-pip
sudo apt-get install -y python-dev
# To get easy_install
sudo apt-get install -y python-setuptools
sudo easy_install -U pip
# -H to use .cache in /root
sudo -H pip install -U 'ipython[all]'
# Make sure to have basic tools installed.
cabal update
cabal install happy alex
cabal install cpphs
cabal install gtk2hs-buildtools
# C libraries
sudo apt-get install -y libtinfo-dev
sudo apt-get install -y libzmq3-dev
sudo apt-get install -y libcairo2-dev
sudo apt-get install -y libpango1.0-dev
sudo apt-get install -y libmagic-dev
./build.sh all