Created
December 19, 2012 19:19
-
-
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)
This file contains 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
#!/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