can't install matplotlib on CentOS

Hi all,

I’m running CentOS 5.9 and I would like to install the latest version of matplotlib (or at least 1.2). The version of python I would like to use is 2.6 and it’s invokable only with python26, not just python.

Now, I downloaded the tarball and installed the required packages separately from their respective tarball, but I can’t build (let alone install) matplotlib:

In short, it says:
/usr/share/python2.6/CXX/cxxsupport.cxx:40:38: error: Src/Python2/cxxsupport.cxx: No such file or directory

The full output is here:

I installed pycxx manually and it appears as pycxx: yes [Using system CXX (version unknown, no pkg-config info)]

Any idea on how I can fix this?