Installing Grunt on CentOS 5.10

Today I attempted to get the Grunt Javascript Task Runner installed on a test box. This first required the installation of Node.js.

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 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:

virtualenv-2.7 fornode

to create an environment from which I could install node using Python 2.7. Back to installing node now…

Node’s ./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++

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s