When I tried to run
./configure for Node, I got a syntax error. Turns out my Python version was too old (python 2.4.3, thanks to my test box running CentOS 5.10).
I then attempted to install an alternate version of Python, using these instructions. However, I couldn’t get the Python archive (.xz format) to extract using the “tar” command, because my tar was too old! I had to do
yum install xz and then
xz -dvk Python-2.7.6.tar.xz to get it to extract.
Next up was installing setuptools for Python. I fetched the ez_setup.py file with wget, then attempted to install using python2.7:
This failed with a bunch of tracebacks, but basically it was trying to run wget which was returning a non-zero exit status. I realized that my wget could not verify the SSL cert of the server it was trying to fetch from, so I had to add
--insecure to the command above, then it worked.
I was able to quickly install “pip” and with it, install “virtualenv”. Then I ran:
to create an environment from which I could install node using Python 2.7. Back to installing node now…
./configure failed once again, this time due to gcc being too old.
It was at this point that I abandoned any hopes of getting a recent Node installed on CentOS 5.10.
I got a CentOS 6.5 machine going and easily installed Node, only having to do first:
gcc-c++ compat-gcc-32 compat-gcc-32-c++