Skip to content

Instantly share code, notes, and snippets.

@AlainODea
Last active December 26, 2015 10:18
Show Gist options
  • Save AlainODea/7135336 to your computer and use it in GitHub Desktop.
Save AlainODea/7135336 to your computer and use it in GitHub Desktop.
SmartOS Haskell Platform for x86_64
# assuming you have Joyent Compute Service available
sdc-createmachine --dataset 17c98640-1fdb-11e3-bf51-3708ce78e75a --package g3-standard-1-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-x86_64.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

This has been tested to work. You can successfully run 64-bit Yesod applications on SmartOS now.

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