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

2013-05-06 Thread rad

I am using the virtualenvwrapper and am installing this in a new virtualenv.
I also tried installing it locally but failed with the same error:

/home/webalert/.virtualenvs/mandala/lib/python2.6/site-packages/numpy/core/include/numpy/__multiarray_api.h:1594:
warning: ‘int _import_array()’ defined but not used

error: command 'gcc' failed with exit status 1


Command /home/webalert/.virtualenvs/mandala/bin/python -c "import
setuptools;__file__='/home/webalert/.virtualenvs/mandala/build/matplotlib/setup.py';exec(compile(open(__file__).read().replace('\r\n',
'\n'), __file__, 'exec'))" install --record
/tmp/pip-aybCcz-record/install-record.txt
--single-version-externally-managed --install-headers
/home/webalert/.virtualenvs/mandala/include/site/python2.6 failed with error
code 1 in /home/webalert/.virtualenvs/mandala/build/matplotlib
Storing complete log in /home/webalert/.pip/pip.log

And from the pip.log :

   status = self.run(options, args)
  File
"/usr/lib/python2.6/site-packages/pip-1.3.1-py2.6.egg/pip/commands/install.py",
line 271, in run
requirement_set.install(install_options, global_options,
root=options.root_path)
  File "/usr/lib/python2.6/site-packages/pip-1.3.1-py2.6.egg/pip/req.py",
line 1185, in install
requirement.install(install_options, global_options, *args, **kwargs)
  File "/usr/lib/python2.6/site-packages/pip-1.3.1-py2.6.egg/pip/req.py",
line 592, in install
cwd=self.source_dir, filter_stdout=self._filter_install,
show_stdout=False)
  File "/usr/lib/python2.6/site-packages/pip-1.3.1-py2.6.egg/pip/util.py",
line 662, in call_subprocess
% (command_desc, proc.returncode, cwd))
InstallationError: Command /usr/bin/python -c "import
setuptools;__file__='/tmp/pip-build-webalert/matplotlib/setup.py';exec(compile(open(__file__).read().replace('\r\n',
'\n'), __file__, 'exec'))" install --record
/tmp/pip-AnrXxv-record/install-record.txt
--single-version-externally-managed failed with error code 1 in
/tmp/pip-build-webalert/matplotlib


I tried to install "Development Tools", and gcc: yum install gcc-c++
compat-gcc-32 compat-gcc-32-c++

This did not resolve the issue. Is the problem an incompatible version of
numpy? Any help would be appreciated.




--
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-tp41007.html
Sent from the matplotlib - devel mailing list archive at Nabble.com.

--
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
___
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-06 Thread rad
Also when installing it locally NOT using pip, it worked

sudo yum install python-matplotlib


I do want to install it into my virtualenv however.



--
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-tp41007p41008.html
Sent from the matplotlib - devel mailing list archive at Nabble.com.

--
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
___
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-06 Thread rad
I was able to install everything with pip except for sqlite and matplotlib.

Downloading/unpacking matplotlib
  Downloading matplotlib-1.2.1.tar.gz (38


Python 2.6.6 (r266:84292, Feb 22 2013, 00:00:18) 
[GCC 4.4.7 20120313 (Red Hat 4.4.7-3)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
>>> numpy.__version__
'1.7.1'
>>> 

This here is the complete error message:






































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































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

2013-05-07 Thread rad
Try --

   yum install freetype-devel

This installed successfully.

Or as a shortcut to get all of the build dependencies installed:

   yum-builddep python-matplotlib

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 -Iagg24/include -I. -I/usr/include/python2.6 -c CXX/cxx_extensions.cxx
-o build/temp.linux-x86_64-2.6/CXX/cxx_extensions.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 -DP

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 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