Skip to content

Instantly share code, notes, and snippets.

@theturtle32
Created October 8, 2012 20:05
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 theturtle32/3854634 to your computer and use it in GitHub Desktop.
Save theturtle32/3854634 to your computer and use it in GitHub Desktop.
Installing Node on Amazon Linux

Compiling/Installing Node 0.8.11 on Amazon Linux

Verify Python 2.6 is ready to go. (Should print "Python 2.6.8")

$ python -V

Install Development Toolchain

$ sudo yum groupinstall "Development Tools"

Switch to home directory:

$ cd ~

Download Node 0.8.11 source tarball:

$ wget http://nodejs.org/dist/v0.8.11/node-v0.8.11.tar.gz

Untar:

$ tar -xzf node-v0.8.11.tar.gz

Switch to node directory:

$ cd node-v0.8.11

Run configure script with newly installed python binary

$ ./configure

Compile Node

$ make -j5

Install Node

$ sudo make install

Verify installation (should print "v0.8.11")

$ node --version

Make Node available via sudo

$ sudo ln -s /usr/local/bin/node /bin/node
$ sudo ln -s /usr/local/bin/node-wav /bin/node-waf
$ sudo ln -s /usr/local/bin/npm /bin/npm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment