Skip to content

Instantly share code, notes, and snippets.

@kblomqvist
Last active October 3, 2015 00:18
Show Gist options
  • Select an option

  • Save kblomqvist/2352845 to your computer and use it in GitHub Desktop.

Select an option

Save kblomqvist/2352845 to your computer and use it in GitHub Desktop.
Setting up Yesod 1.0 from scratch (Debian 6 64-bit)
cd ~/Downloads
# Download GHC 7.0.4 binary (take care of the platform, my was Debian 6 64-bit)
wget http://www.haskell.org/ghc/dist/7.0.4/ghc-7.0.4-x86_64-unknown-linux.tar.bz2
# Download Haskell-platform
wget http://lambda.haskell.org/platform/download/2011.4.0.0/haskell-platform-2011.4.0.0.tar.gz
# Unzip both
tar xvf ghc-7.0.4-x86_64-unknown-linux.tar.bz2
tar xvzf haskell-platform-2011.4.0.0.tar.gz
# Configure and install GHC 7.0.4 (this is binary so no need to compile)
cd ghc-7.0.4-x86_64-unknown-linux
./configure --prefix=$HOME/local/ghc7.0.4
make install
export PATH=$HOME/local/ghc7.0.4/bin:$PATH
# Back to ~/Downloads
cd ..
# Configure, compile and install Haskell-platform
cd haskell-platform-2011.4.0.0
sudo aptitude install libedit-dev libbsd-dev libgmp3-dev zlib1g-dev freeglut3-dev
./configure --prefix=$HOME/local/haskell-platform-2011.4.0.0
make
make install
export PATH=$HOME/local/haskell-platform-2011.4.0.0/bin/:$PATH
# Update Cabal
cabal update
# Install Yesod-platform
cabal install yesod-platform
export PATH=$HOME/.cabal/bin:$PATH
# Create a new Yesod project
cd ~/workspace
yesod init
cd testpage # or whatever you name your project
cabal install
yesod devel
# Browse to localhost:3000 to see the result
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment