Skip to content

Instantly share code, notes, and snippets.

@elliottb
Forked from clemherreman/install.sh
Last active December 16, 2015 22:20

Revisions

  1. elliottb revised this gist May 3, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion install.sh
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    sudo apt-get update && apt-get install git-core curl build-essential openssl libssl-dev
    sudo apt-get update && apt-get install git-core curl build-essential openssl libssl-dev python

    git clone https://github.com/joyent/node.git
    cd node
  2. @clemherreman clemherreman revised this gist Feb 20, 2012. No changes.
  3. @clemherreman clemherreman created this gist Feb 20, 2012.
    19 changes: 19 additions & 0 deletions install.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,19 @@
    sudo apt-get update && apt-get install git-core curl build-essential openssl libssl-dev

    git clone https://github.com/joyent/node.git
    cd node

    # 'git tag' shows all available versions: select the latest stable.
    git checkout enter-a-version

    # Configure seems not to find libssl by default so we give it an explicit pointer.
    # Optionally: you can isolate node by adding --prefix=/opt/node
    ./configure --openssl-libpath=/usr/lib/ssl
    make
    make test
    sudo make install
    node -v # it's alive!

    # Luck us: NPM is packaged with Node.js source so this is now installed too
    # curl http://npmjs.org/install.sh | sudo sh
    npm -v # it's alive!