Skip to content

Instantly share code, notes, and snippets.

@xdamman
Created December 19, 2012 19:19
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xdamman/4339637 to your computer and use it in GitHub Desktop.
Save xdamman/4339637 to your computer and use it in GitHub Desktop.
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