Skip to content

Instantly share code, notes, and snippets.

@dirkk0
Created February 11, 2012 12:32
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 dirkk0/1799210 to your computer and use it in GitHub Desktop.
Save dirkk0/1799210 to your computer and use it in GitHub Desktop.
node/npm 0.4.7 on ubuntu 8 server
# ubuntu updates and installs
sudo apt-get update; sudo apt-get upgrade --yes;
sudo apt-get install --yes curl;
sudo apt-get install --yes build-essential;
sudo apt-get install --yes libssl-dev; sudo apt-get install --yes pkg-config;
sudo apt-get install --yes git-core git;
# important! run as super user.
sudo su
# bz2 header needed for python compile
apt-get install libbz2-dev
wget http://python.org/ftp/python/2.7/Python-2.7.tgz
tar xzf Python-2.7.tgz
cd Python-2.7
./configure
make
sudo make install
# why 0.4.7? heroku uses it.
mkdir ~/local;
cd ~/local;
# wget http://nodejs.org/dist/v0.7.0/node-v0.7.0.tar.gz
wget http://nodejs.org/dist/node-v0.4.7.tar.gz
tar -zxvf node-v0.4.7.tar.gz;
cd node-v0.4.7;
# ./configure --prefix=$HOME/local/node;
./configure;
make;
sudo make install;
curl http://npmjs.org/install.sh | sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment