IHaskell/linux-install.sh

45 lines
956 B
Bash
Raw Normal View History

2015-03-07 17:30:29 -05:00
#!/bin/bash
2015-03-06 17:48:00 -05:00
# Installation for Linux (tested on Ubuntu 14.10) from IHaskell repo directory.
# TODO Split out setup for installation from Hackage released versions.
2015-03-06 17:48:00 -05:00
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
2015-03-07 17:30:29 -05:00
sudo easy_install -U pip
# -H to use .cache in /root
sudo -H pip install -U 'ipython[all]'
2015-03-06 17:48:00 -05:00
# 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
2015-03-06 17:48:00 -05:00
./build.sh all