hello,
Sorry for my poor english.
I have a big problem with matplotlib under AIX6.1.
My configuration :
OS : AIX 6.1
XLC : 12.1.0.0
Python 2.7.5-1
I installed Python and all dependencies from www.oss4aix.org/download/RPMS with the rpm files.
This is the all packages that I installed:
rpm -ivh gcc/libgcc-4.4.7-1.aix6.1.ppc.rpm
rpm -ivh libffi/libffi-3.0.13-1.aix5.1.ppc.rpm
rpm -ivh libffi/libffi-devel-3.0.13-1.aix5.1.ppc.rpm
rpm -ivh expat/expat-2.1.0-1.aix5.1.ppc.rpm
rpm -ivh expat/expat-devel-2.1.0-1.aix5.1.ppc.rpm
rpm -ivh libiconv/libiconv-1.14-2.aix5.1.ppc.rpm glib2/glib2-2.36.3-1.aix5.1.ppc.rpm gettext/gettext-0.17-1.aix5.1.ppc.rpm --nodeps (missing libxlsmp.a(smprt.o))
rpm -ivh pkg-config/pkg-config-0.28-1.aix5.1.ppc.rpm
rpm -ivh zlib/zlib-1.2.8-1.aix5.1.ppc.rpm
rpm -ivh zlib/zlib-devel-1.2.8-1.aix5.1.ppc.rpm
rpm -ivh libpng/libpng-1.6.3-1.aix5.1.ppc.rpm
rpm -ivh libpng/libpng-devel-1.6.3-1.aix5.1.ppc.rpm
rpm -ivh freetype2/freetype2-2.5.0-1.aix5.1.ppc.rpm
rpm -ivh freetype2/freetype2-devel-2.5.0-1.aix5.1.ppc.rpm
rpm -ivh fontconfig/fontconfig-2.8.0-2.aix5.1.ppc.rpm
rpm -ivh fontconfig/fontconfig-devel-2.8.0-2.aix5.1.ppc.rpm
rpm -ivh libXrender/libXrender-0.9.7-2.aix6.1.ppc.rpm
rpm -ivh libXrender/libXrender-devel-0.9.7-2.aix6.1.ppc.rpm
rpm -ivh libXft/libXft-2.3.1-1.aix5.1.ppc.rpm
rpm -ivh libXft/libXft-devel-2.3.1-1.aix5.1.ppc.rpm
rpm -Uvh tcl/tcl-8.5.14-1.aix5.1.ppc.rpm
rpm -ivh tcl/tcl-devel-8.5.14-1.aix5.1.ppc.rpm
rpm -Uvh tk/tk-8.5.14-1.aix5.1.ppc.rpm
rpm -ivh tk/tk-devel-8.5.14-1.aix5.1.ppc.rpm
rpm -ivh info/info-5.1-1.aix5.1.ppc.rpm
rpm -ivh readline/readline-6.2-4.aix5.1.ppc.rpm
rpm -ivh readline/readline-devel-6.2-4.aix5.1.ppc.rpm
rpm -ivh openssl/openssl-1.0.1e-2.aix5.1.ppc.rpm
rpm -ivh openssl/openssl-devel-1.0.1e-2.aix5.1.ppc.rpm
rpm -ivh gdbm/gdbm-1.10-1.aix5.1.ppc.rpm
rpm -ivh gdbm/gdbm-devel-1.10-1.aix5.1.ppc.rpm
rpm -ivh gmp/gmp-5.0.5-1.aix5.1.ppc.rpm
rpm -ivh gmp/gmp-devel-5.0.5-1.aix5.1.ppc.rpm
rpm -ivh gettext/gettext-devel-0.17-1.aix5.1.ppc.rpm
rpm -ivh db4/db4-4.7.25-2.aix5.1.ppc.rpm
rpm -ivh db4/db4-devel-4.7.25-2.aix5.1.ppc.rpm
rpm -ivh bzip2/bzip2-1.0.6-1.aix5.1.ppc.rpm
rpm -ivh bzip2/bzip2-devel-1.0.6-1.aix5.1.ppc.rpm
rpm -ivh sqlite/sqlite-3.7.17-1.aix5.1.ppc.rpm
rpm -ivh sqlite/sqlite-devel-3.7.17-1.aix5.1.ppc.rpm
rpm -ivh python/python-libs-2.7.5-1.aix6.1.ppc.rpm
rpm -ivh python/python-2.7.5-1.aix6.1.ppc.rpm
rpm -ivh python/python-devel-2.7.5-1.aix6.1.ppc.rpm
rpm -ivh python/tkinter-2.7.5-1.aix6.1.ppc.rpm
rpm -ivh python/python-tools-2.7.5-1.aix6.1.ppc.rpm
rpm -ivh python/python-test-2.7.5-1.aix6.1.ppc.rpm
In the first step I spent a lot of time to compile matplotlib. This is what I did to install matplotlib :
>From sources I installed NUMPY, SETUPTOOLS, PYTHON-DATEUTIL
With easy_install I installed TORNADO, PYPARSING
I need to do some changes in sources of matplotlib:
Patch 0
--- CXX/WrapPython.h 2013-09-18 14:47:26.000000000 -0500
+++ CXX/WrapPython.h.orig 2013-09-18 14:47:07.000000000 -0500
@@ -38,9 +38,6 @@
#ifndef __PyCXX_wrap_python_hxx__
#define __PyCXX_wrap_python_hxx__
- #include<stdio.h>
- #include<unistd.h>
-
// On some platforms we have to include time.h to get select defined
#if !defined(__WIN32__) && !defined(WIN32) && !defined(_WIN32) && !defined(_WIN64)
#include <sys/time.h>
Patch 1
--- src/ft2font.h 2013-09-18 14:43:11.000000000 -0500
+++ src/ft2font.h.orig 2013-09-18 14:42:19.000000000 -0500
@@ -1,9 +1,5 @@
/* -*- mode: c++; c-basic-offset: 4 -*- */
- #include<stdio.h>
- #include<unistd.h>
-
-
/* A python interface to freetype2 */
#ifndef _FT2FONT_H
#define _FT2FONT_H
Patch 2
--- src/mplutils.h 2013-09-18 14:46:06.000000000 -0500
+++ src/mplutils.h.orig 2013-09-18 14:45:32.000000000 -0500
@@ -12,9 +12,6 @@
*
*/
- #include<stdio.h>
- #include<unistd.h>
-
#ifndef _MPLUTILS_H
#define _MPLUTILS_H
Patch 3
--- ttconv/pprdrv.h 2013-09-18 14:49:07.000000000 -0500
+++ ttconv/pprdrv.h.orig 2013-09-18 14:48:47.000000000 -0500
@@ -21,9 +21,6 @@
** This file last revised 5 December 1995.
*/
- #include<stdio.h>
- #include<unistd.h>
-
#include <vector>
#include <cassert>
I create a link in the sources directory : ln -s /opt/freeware/lib/python2.7/config Modules
I create a xlC script
cat > xlC << EOF
/bin/bash
Modules/ld_so_aix
EOF
chmod a+x xlC
python setup.py install
With all this, the compilation ends.
When I check the use of matplotlib
import matplotlib
import numpy as np
from matplotlib import pyplot
a=np.arange(100)
pyplot.plot(a)
At this point I'm so happy !!!!!!
BUT, when I want plot the array !!!!
pyplot.show()
I had a segmentation fault ...... HELLLLLLLLLP !
My first question : Do somebody is able to plot something with matplotlib uner AIX 6.1 ???? And HOW ???
Do you know a howtodo page to do a correct installation ?
Thank you !
David
|