Installing Node.js on Centos 5
Nothing's ever straightforward in the world of CentOS, especially for CentOS 5 now in mid-sunset.
Commands
- Make sure you have python 2.6 installed. Do not uninstall python 2.4 as everything seems to need it.
yum install python26
. This should give you an executablepython26
while leavingpython
as the 2.4 version. - Download the latest and greatest node package:
wget http://nodejs.org/dist/node-latest.tar.gz; tar zxvf node-latest.tar.gz
- cd into the new node dir (this will be unique to the current version).
vi configure
- Change
#!/usr/bin/env python
to#!/usr/bin/env python26
./configure; make; sudo make install
- Have fun with node!