HOWTO: Build node.js on a CentOS machine

I recently had the “pleasure” to build node.js on a relatively vanilla CentOS machine. I was a little surprised at the number of dependencies which were missing.

So, I wanted to take a little time to document the experience. I don’t know whether this is successful for anyone else. It will depend on your initial CentOS set-up, and what yum repositories you have access to.

My first surprise during installation was that I did not have the expected C++ packages installed, even though gcc was installed and available on my path. I had to grab the following package:

sudo yum install gcc-c++

Then, node.js began complaining about openssl not being available, even though it was. What node.js meant is that it wanted the SSL libs that are packaged in openssl-devel. So…

sudo yum install openssl-devel

After that, everything went as advertised. Here’s all the install steps together:

sudo yum install gcc-c++
sudo yum install openssl-devel
sudo yum install python
sudo yum install git 
git clone git://
cd node
git checkout v0.4
sudo ./configure
sudo make
sudo make install
curl | sh

2 responses to “HOWTO: Build node.js on a CentOS machine

  1. Eric- Would love to chat with you regarding a position in Eugene at a well funded startup in a great industry. I worked with you at Yahoo! a few years ago.

  2. Hi there everyone, it’s my first pay a visit at this website, and
    post is truly fruitful designed for me, keep up posting these articles.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s