Compiling node.js on CentOS 4.8

December 2, 2009

CentOS 4.8 comes with python 2.3 installed. The node.js configure script will not work with this version of python. You’ll need to install python from source:

1. wget http://www.python.org/ftp/python/2.5.2/Python-2.5.2.tgz
2. tar xzf Python-2.5.2.tgz
3. cd Python-2.5.2
4. ./configure
5. make
6. sudo make install

This will install python-2.5.2 to /usr/local/bin/python.

Then you need to install node:

1. wget http://s3.amazonaws.com/four.livejournal/20091128/node-v0.1.20.tar.gz
2. tar xzf node-v0.1.20.tar.gz
3. cd node-v0.1.20
4. ./configure
5. make
6. sudo make install

Note that the url to the node.js tarball may change. Go to node.js to download the latest. This will install node to /usr/local/bin as well.

Advertisements

2 Responses to “Compiling node.js on CentOS 4.8”


  1. […] Citysearch® Australia Code Monkeys Making Citysearch Do Its Thing « Compiling node.js on CentOS 4.8 […]

  2. mrugen Says:

    Thanks Gentlemen The short article really saved the day.
    It was easy to use.


Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s

%d bloggers like this: