Installing Node.js on EC2 64-bit microinstance running Amazon Linux

Download sourcecode

Choose the appropriate sourcecode version by going to

wget # or use curl

Install g++

I found that the g++ is needed to install node.js from sourcecode. Found a hint about installing g++ on Amazon Linux, which basically tells you to do this:

sudo yum install gcc-c++.x86_64

Install openssl

To get ssl support, you need to install openssl-devel.x86_64 which is not installed by default (only binary version). Alternately you can install without ssl support with ./configure –without-ssl. (thanks to my colleague Elias Löfgren for helping out here)

sudo yum install openssl-devel.x86_64

Install make

(thanks Daniel for pointing this out)

sudo yum install -y make.x86_64

Install Node.js

Now you can configure, make, install:

make install

2 thoughts on “Installing Node.js on EC2 64-bit microinstance running Amazon Linux

  • January 13, 2012 at 10:55 am

    Thank you. Concise post!

    One more thing.
    I repeated your commands, and found one missing : make.

    > yum install -y make.x86_64

    • January 13, 2012 at 11:56 am

      I must have installed that on a previous run on the instance. Thanks.

Leave a Reply