Hi, the more recent information on installing matplotlib on AIX with XLC compiler are pretty dated (5 years ago), so I'd like to let you know what I did to have it on my machine. This is matplotlib-v1.1.0 on AIX-v5.3 and xlc-v10.1
Some code is worth 1000 words, so here it is, just a couple of comments: - Note that similar problems occurred when installing scipy: http://projects.scipy.org/scipy/ticket/1299 - if I understand C++ Standard (ISO/IEC 14882), section 14.6.4.2, you should apply my patch1 below to the mainline (trunk). #!/bin/bash cat >xlC <<-"xlC-script-fooling" #!/bin/bash echo "Davide's xlC - parameters:" $* tbr="" # getting rid of wrong cc_r first argument # note that $1 becomes $params[0] [ "$1" = "cc_r" ] && tbr=0 # getting rid of other unwanted arguments params=( "$@" ); for i in ${!params[*]}; do # you don't link to stdc++ with XL compilers [ "${params[$i]}" == "-lstdc++" ] && tbr="$tbr $i" done for i in $tbr; do unset params[$i] done # -qmkshrobj is to create shared objects with XLC set -- "-qmkshrobj ${params[@]}" /bin/xlC $* xlC-script-fooling cat xlC chmod +x xlC cp setup.cfg.template setup.cfg patch setup.cfg <<-"patch0" 60c #macosx = False . 17c #verbose = True . 9c #basedirlist = /usr . patch0 patch agg24/include/agg_rasterizer_cells_aa.h <<-"patch1" 499c template <class T> AGG_INLINE void swap_cells(T* a, T* b) . patch1 # Note sure why they think this should be undefined on AIX patch src/_png.cpp <<-"patch2" 34c #endif */ . 32c /* #ifdef _AIX . patch2 export PATH=$PATH:`pwd` export PKG_CONFIG_PATH=/contrib/freetype/2.4.8/lib/pkgconfig/ export CFLAGS="-qcpluscmt -bnoquiet -I/contrib/zlib/include/ -I/contrib/libpng-1.2.40/include/" source /contrib/Modules/3.2.6/init/bash module load python zlib libpng-1.2.40 cat setup.cfg echo export echo python setup.py build rm xlC Regards, Davide Del Vento, NCAR Computational & Information Services Laboratory Consulting Services Software Engineer http://www.cisl.ucar.edu/hss/csg/ SEA Chair http://sea.ucar.edu/ ------------------------------------------------------------------------------ Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex infrastructure or vast IT resources to deliver seamless, secure access to virtual desktops. With this all-in-one solution, easily deploy virtual desktops for less than the cost of PCs and save 60% on VDI infrastructure costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox _______________________________________________ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel