Last active
December 26, 2015 10:19
-
-
Save AlainODea/7135389 to your computer and use it in GitHub Desktop.
SmartOS Haskell Platform for i386
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Prefix should be /opt/local/ not /opt/local/share/ if binaries are to be in the PATH.