Nerdier

Adjective: Comparative form of nerdy: more nerdy.

Node.js on CentOS 5

A guide on how to install Node.js on CentOS 5, as it requires a later version of Python.

Install the EPEL repo.

cd /usr/src

wget http://download.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm

rpm -Uvh epel-release-5-4.noarch.rpm

Then install Python 2.6 along side the current version. Do not remove 2.4 as it’s required by yum.

yum install openssl-devel python26

Get the latest version of Node.js from here. Then download/install.

cd /usr/src

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

tar -xvf node-v0.10.13.tar.gz

cd node-v0.10.13/

PYTHON="/usr/bin/python2.6"

export PYTHON

python2.6 configure && make && make install

Leave a Reply

Your email address will not be published. Required fields are marked *