On 05/07/2013 11:53 AM, rad wrote:
> Try --
>
> yum install freetype-devel
>
> This installed successfully.
>
> Or as a shortcut to get all of the build dependencies installed:
>
> yum-builddep python-matplotlib
I'm not sure why this is failing for you -- I've never had that fail in
that way on Fedora, but perhaps there's something different about centos.
The error below is because you don't have the libpng headers installed.
Try:
yum install libpng-devel
Mike
>
> This ended with:
>
> (mandala)[webalert@localhost ~]$ sudo yum-builddep python-matplotlib
> [sudo] password for webalert:
> Loaded plugins: fastestmirror, refresh-packagekit
> Loading mirror speeds from cached hostfile
> * base: centos.mirror.ca.planethoster.net
> * extras: mirror.science.uottawa.ca
> * rpmforge: mirror.team-cymru.org
> * updates: centos.mirror.ca.planethoster.net
> Checking for new repos for mirrors
> No source RPM found for python-matplotlib-0.99.1.2-1.el6.x86_64
> No uninstalled build requires
>
> Still running into the error:
>
> gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
> -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic
> -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall
> -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
> --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv
> -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1
> -I/usr/local/include -I/usr/include
> -I/home/webalert/.virtualenvs/mandala/lib/python2.6/site-packages/numpy/core/include
> -I/usr/local/include -I/usr/include -I.
> -I/home/webalert/.virtualenvs/mandala/lib/python2.6/site-packages/numpy/core/include
> -Isrc -Iagg24/include -I. -I/usr/include/python2.6 -c
> agg24/src/agg_trans_affine.cpp -o
> build/temp.linux-x86_64-2.6/agg24/src/agg_trans_affine.o
>
> gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
> -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic
> -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall
> -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
> --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv
> -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1
> -I/usr/local/include -I/usr/include
> -I/home/webalert/.virtualenvs/mandala/lib/python2.6/site-packages/numpy/core/include
> -I/usr/local/include -I/usr/include -I.
> -I/home/webalert/.virtualenvs/mandala/lib/python2.6/site-packages/numpy/core/include
> -Isrc -Iagg24/include -I. -I/usr/include/python2.6 -c
> agg24/src/agg_image_filters.cpp -o
> build/temp.linux-x86_64-2.6/agg24/src/agg_image_filters.o
>
> gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
> -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic
> -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall
> -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
> --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv
> -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1
> -I/usr/local/include -I/usr/include
> -I/home/webalert/.virtualenvs/mandala/lib/python2.6/site-packages/numpy/core/include
> -I/usr/local/include -I/usr/include -I.
> -I/home/webalert/.virtualenvs/mandala/lib/python2.6/site-packages/numpy/core/include
> -Isrc -Iagg24/include -I. -I/usr/include/python2.6 -c
> agg24/src/agg_bezier_arc.cpp -o
> build/temp.linux-x86_64-2.6/agg24/src/agg_bezier_arc.o
>
> gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
> -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic
> -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall
> -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
> --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv
> -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1
> -I/usr/local/include -I/usr/include
> -I/home/webalert/.virtualenvs/mandala/lib/python2.6/site-packages/numpy/core/include
> -I/usr/local/include -I/usr/include -I.
> -I/home/webalert/.virtualenvs/mandala/lib/python2.6/site-packages/numpy/core/include
> -Isrc -Iagg24/include -I. -I/usr/include/python2.6 -c CXX/cxxsupport.cxx -o
> build/temp.linux-x86_64-2.6/CXX/cxxsupport.o
>
> gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
> -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic
> -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall
> -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
> --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv
> -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1
> -I/usr/local/include -I/usr/include
> -I/home/webalert/.virtualenvs/mandala/lib/python2.6/site-packages/numpy/core/include
> -I/usr/local/include -I/usr/include -I.
> -I/home/webalert/.virtualenvs/mandala/lib/python2.6/site-packages/numpy/core/include
> -Isrc