Re: [matplotlib-devel] getting error: command 'gcc' failed with exit status 1 while installing matplotlib in CentOS

2013-05-08 Thread rad
Anything else I can try to get this going? Is the OS the problem? I am using
CentOS x64  6.4 Final



--
View this message in context: 
http://matplotlib.1069221.n5.nabble.com/getting-error-command-gcc-failed-with-exit-status-1-while-installing-matplotlib-in-CentOS-tp41007p41023.html
Sent from the matplotlib - devel mailing list archive at Nabble.com.

--
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] getting error: command 'gcc' failed with exit status 1 while installing matplotlib in CentOS

2013-05-08 Thread Michael Droettboom
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

Re: [matplotlib-devel] getting error: command 'gcc' failed with exit status 1 while installing matplotlib in CentOS

2013-05-08 Thread rad
Thanks Mike!

 yum-builddep python-matplotlib


did not fix the problem but installing  the headers did the trick:

sudo yum install libpng-devel


It installed successfully now :)

Rad



--
View this message in context: 
http://matplotlib.1069221.n5.nabble.com/getting-error-command-gcc-failed-with-exit-status-1-while-installing-matplotlib-in-CentOS-tp41007p41026.html
Sent from the matplotlib - devel mailing list archive at Nabble.com.

--
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel