Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Upgrade the default Joyent Smart Machine Node Image 1.3.3 to using node 0.8.16 (I don't like the newest 1.4.0 image since it doesn't come with out-of-the box push to a git repo and deploy)
#!/usr/bin/env bash
pkgin -f update
pkgin install gcc-compiler
mkdir src
cd src
curl -O http://nodejs.org/dist/v0.8.16/node-v0.8.16.tar.gz
gtar -xpf node-v0.8.16.tar.gz
cd node-v0.8.16
./configure --with-dtrace --prefix=/opt/nodejs/v0.8.16/
gmake install
rm /home/node/local/nodejs
ln -s /opt/nodejs/v0.8.16/ /home/node/local/nodejs
# Optional: install GraphicsMagick
pkgin in GraphicsMagick
pkgin in logrotate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment