Last active
December 26, 2015 10:18
-
-
Save AlainODea/7135336 to your computer and use it in GitHub Desktop.
SmartOS Haskell Platform for x86_64
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 17c98640-1fdb-11e3-bf51-3708ce78e75a --package g3-standard-1-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-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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This has been tested to work. You can successfully run 64-bit Yesod applications on SmartOS now.