can't install matplotlib on CentOS

Issues related to software problems.
Post Reply
ravita
Posts: 2
Joined: 2013/11/20 17:07:16

can't install matplotlib on CentOS

Post by ravita » 2013/11/20 17:10:02

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.
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: http://pastebin.com/7mVKZ6P5

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?

Thanks!
Last edited by ravita on 2013/11/21 03:02:26, edited 1 time in total.

User avatar
TrevorH
Site Admin
Posts: 33216
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: can't install matplotlib on CentOS

Post by TrevorH » 2013/11/20 18:09:34

Don't do it that way!

It's in the EPEL repository

Code: Select all

# yumall list python-matplotlib
Loaded plugins: changelog, downloadonly, priorities, protectbase, security
Excluding Packages from Extra Packages for Enterprise Linux 5 - x86_64
Finished
Excluding Packages from Extra Packages for Enterprise Linux 5 - Testing - x86_64
Finished
Excluding Packages from RHEL 5 - RPMforge.net - dag
Finished
5868 packages excluded due to repository priority protections
0 packages excluded due to repository protections
Available Packages
python-matplotlib.x86_64                                   0.99.1.2-1.el5                                   epel
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

ravita
Posts: 2
Joined: 2013/11/20 17:07:16

Re: can't install matplotlib on CentOS

Post by ravita » 2013/11/20 23:47:37

Yeah, I knew about that package. The thing is, I need to use some features that were introduced in matplotlib 1.2, whereas the version provided by EPEL is 0.99.
Also, if I install it directly like that, it'll install automatically with Python 2.4, not 2.6.

In the end I tried the tarball for matplotlib 1.2 instead of 1.3 and surprisingly it all went smoothly. It bothers me a little bit though, since in 1.3 there were some bug fixes that I really needed...

Do you guys know of any way I can install 1.3?

EDIT: I also tried to upgrade with pip from my installed version 1.2, but I got exactly the same error as above.

Post Reply