On 05/06/2013 01:20 PM, rad wrote:
> 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

It's very odd that gcc is quitting with an error but only emitting a 
warning.  Can you include the gcc command that was run (it should be a 
long line immediately above what you've excerpted here).

>
> ----------------------------------------
> 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 have no idea what this means, but it looks pretty internal to pip and 
setuptools.  Does pip work to install other packages?

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

What version of Numpy do you have installed?

Mike

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


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

Reply via email to