Commit 469bda06 authored by Franklin Chen's avatar Franklin Chen

Improve Mac, Linux installation scripts. Still assumes using build.sh.

parent a26226b6
#!/bin/sh #!/bin/sh
# Installation for Linux (tested on Ubuntu 14.10) # Installation for Linux (tested on Ubuntu 14.10) from IHaskell repo directory.
# TODO Split out setup for installation from Hackage released versions.
sudo apt-get install python-dev # Install IPython.
sudo apt-get install python-pip # python-pip is out of date, causes problems, so we get the latest version.
sudo pip install -U 'ipython[all]' #sudo apt-get install python-pip
easy_install -U pip
pip install -U 'ipython[all]'
sudo apt-get install libtinfo-dev # Install GHC, Cabal, Alex, Happy
sudo apt-get install libzmq3-dev
sudo apt-get install libcairo2-dev # Adjust these as you desire.
sudo apt-get install libpango1.0-dev CABALVER=1.22
GHCVER=7.8.4
# You will want to add this to your shell startup to pick up
# what gets installed by Cabal.
export PATH=~/.cabal/bin:/opt/cabal/$CABALVER/bin:/opt/ghc/$GHCVER/bin:$PATH
sudo apt-get update
sudo apt-get install -y software-properties-common
sudo add-apt-repository -y ppa:hvr/ghc
sudo apt-get update
sudo apt-get install -y cabal-install-$CABALVER ghc-$GHCVER
cabal install alex happy
sudo apt-get install -y python-dev
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
./build.sh all ./build.sh all
./build.sh display ./build.sh display
#!/bin/sh #!/bin/sh
# Installation for Mac OS X. # Installation for Mac OS X from IHaskell repo directory.
# TODO Split out setup for installation from Hackage released versions.
# #
# This script assumes use of Homebrew. # This script assumes use of Homebrew.
# It is assumed you already have GHC and Cabal installed through Homebrew # It is assumed you already have GHC and Cabal installed through Homebrew
...@@ -19,6 +20,19 @@ else ...@@ -19,6 +20,19 @@ else
exit 1 exit 1
fi fi
brew update
# Install IPython.
pip --version >& /dev/null
if [ $? ]; then
pip install -U 'ipython[all]'
else
echo "Python pip needs to be installed."
echo " One way is to install Homebrew Python:"
echo " $ brew install python"
exit 1
fi
if [ -n "`brew --config | grep '^CLT:.*N/A'`" ]; then if [ -n "`brew --config | grep '^CLT:.*N/A'`" ]; then
echo "You need to have XCode command line tools installed." echo "You need to have XCode command line tools installed."
echo " $ xcode-select --install" echo " $ xcode-select --install"
...@@ -36,7 +50,7 @@ cabal --version >& /dev/null ...@@ -36,7 +50,7 @@ cabal --version >& /dev/null
if [ $? ]; then if [ $? ]; then
true true
else else
echo "Please install ghc." echo "Please install Cabal."
echo " $ brew install cabal-install" echo " $ brew install cabal-install"
fi fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment