Created
November 28, 2012 11:29
-
-
Save eendeego/4160610 to your computer and use it in GitHub Desktop.
Custom build node
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 | |
export NODE_VER=0.8.15 | |
cd ~ | |
rm -rf ~/work/node-build/node-$NODE_VER;mkdir -p ~/work/node-build && cd ~/work/node-build | |
rm -rf ~/opt/node-$NODE_VER;mkdir -p ~/opt/node-$NODE_VER | |
[[ -f node-v$NODE_VER.tar.gz ]] || \ | |
curl -O http://nodejs.org/dist/v$NODE_VER/node-v$NODE_VER.tar.gz | |
tar zxf node-v$NODE_VER.tar.gz | |
cd node-v$NODE_VER | |
./configure --prefix=~/opt/node-$NODE_VER --gdb | |
time make install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment