Compile node.js on Centos Linux
This is a quick how to with the steps used to compile Node.js on Centos Linux.
These steps were successfully executed on Centos 6.2 x86 with node 0.6.18
First, download the sourcecode from www.nodejs.org and extract it:
tar -xvf node-v0.6.18.tar.gz
Next, if you don’t have the development tools already installed you’ll need to install them (as root):
yum groupinstall 'Development Tools'
…and you should also install openssl too (as root):
yum install openssl-devel
Now we can start the build process.
If all loks well, lets compile node.js:
And finally to install it into system, as root run:
If all that went well you should have a working node.js installation. Type
node --version to see if it works.