Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kaosf/2027291 to your computer and use it in GitHub Desktop.
Save kaosf/2027291 to your computer and use it in GitHub Desktop.
How to install Node.js to local on Ubuntu 10.04 Server
# 2012-03-13
# preparation for installation
sudo aptitude install build-essential libssl-dev
echo 'export PATH="$HOME/local/bin:$PATH"' >> .zshrc # or .bashrc
# installation process
mkdir -p $HOME/local/src # if doesn't exist yet
cd $HOME/local/src
wget http://nodejs.org/dist/v0.6.12/node-v0.6.12.tar.gz
tar xzf node-v0.6.12.tar.gz
cd node-v0.6.12
./configure --prefix=$HOME/local/
make
make install
node --version
#=> v0.6.12
# ref. http://howtonode.org/how-to-install-nodejs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment