Update system packages -- will migrate system forward to CentOS 5.8. (Optional?)
$ sudo yum updateInstall the EPEL Repo:
$ sudo rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpmInstall the newly available python26 Package from EPEL Repo:
$ sudo yum install python26Set python26 to be the default in your shell when you simply execute 'python' This is critical to being able to build node modules with native extensions
$ mkdir -p $HOME/bin
$ ln -s /usr/bin/python26 $HOME/bin/python
$ echo 'export PATH=$HOME/bin:$PATH' >> ~/.bashrcActivate modified .bashrc for current terminal session
$ source ~/.bashrcVerify Python 2.6 is ready to go. (Should print "Python 2.6.8")
$ python -VInstall Development Toolchain
$ sudo yum groupinstall "Development Tools"Switch to home directory:
$ cd ~Download Node 0.8.4 source tarball:
$ wget http://nodejs.org/dist/v0.8.4/node-v0.8.4.tar.gzUntar:
$ tar -xzf node-v0.8.4.tar.gzSwitch to node directory:
$ cd node-v0.8.4Run configure script with newly installed python binary
$ ./configureCompile Node
$ make -j5Install Node
$ sudo make installVerify installation (should print "v0.8.4")
$ node --version
Thank you! Your config way are the best for me