Skip to content

Instantly share code, notes, and snippets.

@AlainODea
Last active December 26, 2015 10:19
Show Gist options
  • Save AlainODea/7135389 to your computer and use it in GitHub Desktop.
Save AlainODea/7135389 to your computer and use it in GitHub Desktop.
SmartOS Haskell Platform for i386
# assuming you have Joyent Compute Service available
sdc-createmachine --dataset b83f8276-1fdd-11e3-989b-4bddb088a8a0 --package g3-standard-0.625-smartos --name alain-demo-$(uuid) | json -a id
# first get the experimental PKGSRC 2013Q3
curl -s http://pkgsrc.joyent.com/packages/SmartOS/bootstrap/bootstrap-2013Q3-i386.tar.gz |
gzcat | (cd /; sudo tar -xpf -)
# get the latest package information
pkgin -y update
# upgrade all installed packages to their latest versions
pkgin -y upgrade
# install pre-requisites for Haskell Platform build
pkgin -y install ghc build-essential Mesa
# download Haskell Platform source
curl -O http://lambda.haskell.org/platform/download/2013.2.0.0/haskell-platform-2013.2.0.0.tar.gz
tar xzvf haskell-platform-2013.2.0.0.tar.gz
pushd haskell-platform-2013.2.0.0
./configure --prefix=/opt/local/
make -j $(nproc)
make install
popd
cabal update
cabal install cabal-install
export PATH=$PATH:~/.cabal/bin
@AlainODea
Copy link
Author

Prefix should be /opt/local/ not /opt/local/share/ if binaries are to be in the PATH.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment