SourceForge logo
SourceForge logo
Menu

matplotlib-devel — matplotlib developers

You can subscribe to this list here.

2003 Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
(1)
Nov
(33)
Dec
(20)
2004 Jan
(7)
Feb
(44)
Mar
(51)
Apr
(43)
May
(43)
Jun
(36)
Jul
(61)
Aug
(44)
Sep
(25)
Oct
(82)
Nov
(97)
Dec
(47)
2005 Jan
(77)
Feb
(143)
Mar
(42)
Apr
(31)
May
(93)
Jun
(93)
Jul
(35)
Aug
(78)
Sep
(56)
Oct
(44)
Nov
(72)
Dec
(75)
2006 Jan
(116)
Feb
(99)
Mar
(181)
Apr
(171)
May
(112)
Jun
(86)
Jul
(91)
Aug
(111)
Sep
(77)
Oct
(72)
Nov
(57)
Dec
(51)
2007 Jan
(64)
Feb
(116)
Mar
(70)
Apr
(74)
May
(53)
Jun
(40)
Jul
(519)
Aug
(151)
Sep
(132)
Oct
(74)
Nov
(282)
Dec
(190)
2008 Jan
(141)
Feb
(67)
Mar
(69)
Apr
(96)
May
(227)
Jun
(404)
Jul
(399)
Aug
(96)
Sep
(120)
Oct
(205)
Nov
(126)
Dec
(261)
2009 Jan
(136)
Feb
(136)
Mar
(119)
Apr
(124)
May
(155)
Jun
(98)
Jul
(136)
Aug
(292)
Sep
(174)
Oct
(126)
Nov
(126)
Dec
(79)
2010 Jan
(109)
Feb
(83)
Mar
(139)
Apr
(91)
May
(79)
Jun
(164)
Jul
(184)
Aug
(146)
Sep
(163)
Oct
(128)
Nov
(70)
Dec
(73)
2011 Jan
(235)
Feb
(165)
Mar
(147)
Apr
(86)
May
(74)
Jun
(118)
Jul
(65)
Aug
(75)
Sep
(162)
Oct
(94)
Nov
(48)
Dec
(44)
2012 Jan
(49)
Feb
(40)
Mar
(88)
Apr
(35)
May
(52)
Jun
(69)
Jul
(90)
Aug
(123)
Sep
(112)
Oct
(120)
Nov
(105)
Dec
(116)
2013 Jan
(76)
Feb
(26)
Mar
(78)
Apr
(43)
May
(61)
Jun
(53)
Jul
(147)
Aug
(85)
Sep
(83)
Oct
(122)
Nov
(18)
Dec
(27)
2014 Jan
(58)
Feb
(25)
Mar
(49)
Apr
(17)
May
(29)
Jun
(39)
Jul
(53)
Aug
(52)
Sep
(35)
Oct
(47)
Nov
(110)
Dec
(27)
2015 Jan
(50)
Feb
(93)
Mar
(96)
Apr
(30)
May
(55)
Jun
(83)
Jul
(44)
Aug
(8)
Sep
(5)
Oct
Nov
(1)
Dec
(1)
2016 Jan
Feb
Mar
(1)
Apr
May
Jun
(2)
Jul
Aug
(3)
Sep
(1)
Oct
(3)
Nov
Dec
2017 Jan
Feb
(5)
Mar
Apr
May
Jun
Jul
(3)
Aug
Sep
(7)
Oct
Nov
Dec
2018 Jan
Feb
Mar
Apr
May
Jun
Jul
(2)
Aug
Sep
Oct
Nov
Dec
S M T W T F S



1
2
3
4
5
6
(5)
7
(1)
8
(3)
9
10
(1)
11
12
13
(4)
14
(2)
15
(1)
16
(4)
17
18
19
20
(2)
21
(1)
22
23
24
(6)
25
26
27
28
(1)
29
(13)
30
(10)
31
(7)

Showing 3 results of 3

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.
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 -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 -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/IndirectPythonInterface.cxx -o
> build/temp.linux-x86_64-2.6/CXX/IndirectPythonInterface.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/cxxextensions.c -o
> build/temp.linux-x86_64-2.6/CXX/cxxextensions.o
>
> g++ -pthread -shared build/temp.linux-x86_64-2.6/src/image.o
> build/temp.linux-x86_64-2.6/src/mplutils.o
> build/temp.linux-x86_64-2.6/agg24/src/agg_trans_affine.o
> build/temp.linux-x86_64-2.6/agg24/src/agg_image_filters.o
> build/temp.linux-x86_64-2.6/agg24/src/agg_bezier_arc.o
> build/temp.linux-x86_64-2.6/CXX/cxxsupport.o
> build/temp.linux-x86_64-2.6/CXX/cxx_extensions.o
> build/temp.linux-x86_64-2.6/CXX/IndirectPythonInterface.o
> build/temp.linux-x86_64-2.6/CXX/cxxextensions.o -L/usr/local/lib -L/usr/lib
> -L/usr/local/lib64 -L/usr/lib64 -L/usr/lib64 -lstdc++ -lm -lpython2.6 -o
> build/lib.linux-x86_64-2.6/matplotlib/_image.so
>
> building 'matplotlib._png' extension
>
> 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/usr/local/include -I/usr/include -I.
> -I/home/webalert/.virtualenvs/mandala/lib/python2.6/site-packages/numpy/core/include
> -I. -I/usr/include/python2.6 -c src/_png.cpp -o
> build/temp.linux-x86_64-2.6/src/_png.o
>
> src/_png.cpp:10:20: error: png.h: No such file or directory
>
> In file included from
> /home/webalert/.virtualenvs/mandala/lib/python2.6/site-packages/numpy/core/include/numpy/ndarraytypes.h:1728,
>
> from
> /home/webalert/.virtualenvs/mandala/lib/python2.6/site-packages/numpy/core/include/numpy/ndarrayobject.h:17,
>
> from
> /home/webalert/.virtualenvs/mandala/lib/python2.6/site-packages/numpy/core/include/numpy/arrayobject.h:15,
>
> from src/_png.cpp:28:
>
> /home/webalert/.virtualenvs/mandala/lib/python2.6/site-packages/numpy/core/include/numpy/npy_deprecated_api.h:11:2:
> warning: #warning "Using deprecated NumPy API, disable it by #defining
> NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION"
>
> In file included from src/file_compat.h:4,
>
> from src/_png.cpp:30:
>
> /home/webalert/.virtualenvs/mandala/lib/python2.6/site-packages/numpy/core/include/numpy/npy_3kcompat.h:
> In function ‘PyObject* npy_PyFile_OpenFile(PyObject*, const char*)’:
>
> /home/webalert/.virtualenvs/mandala/lib/python2.6/site-packages/numpy/core/include/numpy/npy_3kcompat.h:247:
> warning: deprecated conversion from string constant to ‘char*’
>
> /home/webalert/.virtualenvs/mandala/lib/python2.6/site-packages/numpy/core/include/numpy/npy_3kcompat.h:
> In function ‘int npy_PyFile_CloseFile(PyObject*)’:
>
> /home/webalert/.virtualenvs/mandala/lib/python2.6/site-packages/numpy/core/include/numpy/npy_3kcompat.h:255:
> warning: deprecated conversion from string constant to ‘char*’
>
> src/_png.cpp: At global scope:
>
> src/_png.cpp:67: error: variable or field ‘write_png_data’ declared void
>
> src/_png.cpp:67: error: ‘png_structp’ was not declared in this scope
>
> src/_png.cpp:67: error: ‘png_bytep’ was not declared in this scope
>
> src/_png.cpp:67: error: ‘png_size_t’ was not declared in this scope
>
> /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-5AdrTx-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
> (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
> (mandala)[webalert@localhost ~]$ pip install matplotlib
> Downloading/unpacking matplotlib
> Running setup.py egg_info for package matplotlib
> basedirlist is: ['/usr/local', '/usr']
> 
> ============================================================================
> BUILDING MATPLOTLIB
> matplotlib: 1.2.1
> python: 2.6.6 (r266:84292, Feb 22 2013, 00:00:18) [GCC
> 4.4.7 20120313 (Red Hat 4.4.7-3)]
> platform: linux2
> 
> REQUIRED DEPENDENCIES
> numpy: 1.7.1
> freetype2: 9.22.3
> 
> OPTIONAL BACKEND DEPENDENCIES
> libpng: found, but unknown version (no pkg-config)
> * Could not find 'libpng' headers in any of
> * '/usr/local/include', '/usr/include',
> * '/usr/local/include', '/usr/include', '.'
> Tkinter: no
> * TKAgg requires Tkinter
> Gtk+: no
> * Building for Gtk+ requires pygtk; you must be
> able
> * to "import gtk" in your build/install
> environment
> Mac OS X native: no
> Qt: no
> Qt4: no
> PySide: no
> Cairo: no
> 
> OPTIONAL DATE/TIMEZONE DEPENDENCIES
> dateutil: matplotlib will provide
> pytz: matplotlib will provide
> 
> OPTIONAL USETEX DEPENDENCIES
> dvipng: no
> ghostscript: 8.70
> latex: no
> pdftops: 0.12.4
> 
> [Edit setup.cfg to suppress the above messages]
> 
> ============================================================================
> pymods ['pylab']
> packages ['matplotlib', 'matplotlib.backends',
> 'matplotlib.backends.qt4_editor', 'matplotlib.projections',
> 'matplotlib.testing', 'matplotlib.testing.jpl_units', 'matplotlib.tests',
> 'mpl_toolkits', 'mpl_toolkits.mplot3d', 'mpl_toolkits.axes_grid',
> 'mpl_toolkits.axes_grid1', 'mpl_toolkits.axisartist',
> 'matplotlib.sphinxext', 'matplotlib.tri', 'matplotlib.delaunay', 'pytz',
> 'dateutil', 'dateutil.zoneinfo']
> warning: no files found matching 'KNOWN_BUGS'
> warning: no files found matching 'INTERACTIVE'
> warning: no files found matching 'make.osx'
> warning: no files found matching 'MANIFEST'
> warning: no files found matching '__init__.py'
> warning: no files found matching 'examples/data/*'
> warning: no files found matching 'lib/mpl_toolkits'
> warning: no files found matching
> 'lib/matplotlib/mpl-data/matplotlib.conf'
> warning: no files found matching
> 'lib/matplotlib/mpl-data/matplotlib.conf.template'
> warning: manifest_maker: MANIFEST.in, line 16: 'recursive-include'
> expects <dir> <pattern1> <pattern2> ...
> warning: no files found matching 'LICENSE*' under directory 'license'
> Installing collected packages: matplotlib
> Running setup.py install for matplotlib
> basedirlist is: ['/usr/local', '/usr']
> 
> ============================================================================
> BUILDING MATPLOTLIB
> matplotlib: 1.2.1
> python: 2.6.6 (r266:84292, Feb 22 2013, 00:00:18) [GCC
> 4.4.7 20120313 (Red Hat 4.4.7-3)]
> platform: linux2
> 
> REQUIRED DEPENDENCIES
> numpy: 1.7.1
> freetype2: 9.22.3
> 
> OPTIONAL BACKEND DEPENDENCIES
> libpng: found, but unknown version (no pkg-config)
> * Could not find 'libpng' headers in any of
> * '/usr/local/include', '/usr/include',
> * '/usr/local/include', '/usr/include', '.'
> Tkinter: no
> * TKAgg requires Tkinter
> Gtk+: no
> * Building for Gtk+ requires pygtk; you must be
> able
> * to "import gtk" in your build/install
> environment
> Mac OS X native: no
> Qt: no
> Qt4: no
> PySide: no
> Cairo: no
> 
> OPTIONAL DATE/TIMEZONE DEPENDENCIES
> dateutil: matplotlib will provide
> pytz: matplotlib will provide
> 
> OPTIONAL USETEX DEPENDENCIES
> dvipng: no
> ghostscript: 8.70
> latex: no
> pdftops: 0.12.4
> 
> [Edit setup.cfg to suppress the above messages]
> 
> ============================================================================
> pymods ['pylab']
> packages ['matplotlib', 'matplotlib.backends',
> 'matplotlib.backends.qt4_editor', 'matplotlib.projections',
> 'matplotlib.testing', 'matplotlib.testing.jpl_units', 'matplotlib.tests',
> 'mpl_toolkits', 'mpl_toolkits.mplot3d', 'mpl_toolkits.axes_grid',
> 'mpl_toolkits.axes_grid1', 'mpl_toolkits.axisartist',
> 'matplotlib.sphinxext', 'matplotlib.tri', 'matplotlib.delaunay', 'pytz',
> 'dateutil', 'dateutil.zoneinfo']
> building 'matplotlib._png' extension
> 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/usr/local/include -I/usr/include -I.
> -I/home/webalert/.virtualenvs/mandala/lib/python2.6/site-packages/numpy/core/include
> -I. -I/usr/include/python2.6 -c src/_png.cpp -o
> build/temp.linux-x86_64-2.6/src/_png.o
> src/_png.cpp:10:20: error: png.h: No such file or directory
> In file included from
> /home/webalert/.virtualenvs/mandala/lib/python2.6/site-packages/numpy/core/include/numpy/ndarraytypes.h:1728,
> from
> /home/webalert/.virtualenvs/mandala/lib/python2.6/site-packages/numpy/core/include/numpy/ndarrayobject.h:17,
> from
> /home/webalert/.virtualenvs/mandala/lib/python2.6/site-packages/numpy/core/include/numpy/arrayobject.h:15,
> from src/_png.cpp:28:
> 
> /home/webalert/.virtualenvs/mandala/lib/python2.6/site-packages/numpy/core/include/numpy/npy_deprecated_api.h:11:2:
> warning: #warning "Using deprecated NumPy API, disable it by #defining
> NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION"
> In file included from src/file_compat.h:4,
> from src/_png.cpp:30:
> 
> /home/webalert/.virtualenvs/mandala/lib/python2.6/site-packages/numpy/core/include/numpy/npy_3kcompat.h:
> In function ‘PyObject* npy_PyFile_OpenFile(PyObject*, const char*)’:
> 
> /home/webalert/.virtualenvs/mandala/lib/python2.6/site-packages/numpy/core/include/numpy/npy_3kcompat.h:247:
> warning: deprecated conversion from string constant to ‘char*’
> 
> /home/webalert/.virtualenvs/mandala/lib/python2.6/site-packages/numpy/core/include/numpy/npy_3kcompat.h:
> In function ‘int npy_PyFile_CloseFile(PyObject*)’:
> 
> /home/webalert/.virtualenvs/mandala/lib/python2.6/site-packages/numpy/core/include/numpy/npy_3kcompat.h:255:
> warning: deprecated conversion from string constant to ‘char*’
> src/_png.cpp: At global scope:
> src/_png.cpp:67: error: variable or field ‘write_png_data’ declared void
> src/_png.cpp:67: error: ‘png_structp’ was not declared in this scope
> src/_png.cpp:67: error: ‘png_bytep’ was not declared in this scope
> src/_png.cpp:67: error: ‘png_size_t’ was not declared in this scope
> 
> /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
> Complete output from 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-9i4ni6-record/install-record.txt
> --single-version-externally-managed --install-headers
> /home/webalert/.virtualenvs/mandala/include/site/python2.6:
> basedirlist is: ['/usr/local', '/usr']
>
> ============================================================================
>
> BUILDING MATPLOTLIB
>
> matplotlib: 1.2.1
>
> python: 2.6.6 (r266:84292, Feb 22 2013, 00:00:18) [GCC
>
> 4.4.7 20120313 (Red Hat 4.4.7-3)]
>
> platform: linux2
>
>
>
> REQUIRED DEPENDENCIES
>
> numpy: 1.7.1
>
> freetype2: 9.22.3
>
>
>
> OPTIONAL BACKEND DEPENDENCIES
>
> libpng: found, but unknown version (no pkg-config)
>
> * Could not find 'libpng' headers in any of
>
> * '/usr/local/include', '/usr/include',
>
> * '/usr/local/include', '/usr/include', '.'
>
> Tkinter: no
>
> * TKAgg requires Tkinter
>
> Gtk+: no
>
> * Building for Gtk+ requires pygtk; you must be able
>
> * to "import gtk" in your build/install environment
>
> Mac OS X native: no
>
> Qt: no
>
> Qt4: no
>
> PySide: no
>
> Cairo: no
>
>
>
> OPTIONAL DATE/TIMEZONE DEPENDENCIES
>
> dateutil: matplotlib will provide
>
> pytz: matplotlib will provide
>
>
>
> OPTIONAL USETEX DEPENDENCIES
>
> dvipng: no
>
> ghostscript: 8.70
>
> latex: no
>
> pdftops: 0.12.4
>
>
>
> [Edit setup.cfg to suppress the above messages]
>
> ============================================================================
>
> pymods ['pylab']
>
> packages ['matplotlib', 'matplotlib.backends',
> 'matplotlib.backends.qt4_editor', 'matplotlib.projections',
> 'matplotlib.testing', 'matplotlib.testing.jpl_units', 'matplotlib.tests',
> 'mpl_toolkits', 'mpl_toolkits.mplot3d', 'mpl_toolkits.axes_grid',
> 'mpl_toolkits.axes_grid1', 'mpl_toolkits.axisartist',
> 'matplotlib.sphinxext', 'matplotlib.tri', 'matplotlib.delaunay', 'pytz',
> 'dateutil', 'dateutil.zoneinfo']
>
> running install
>
> running build
>
> running build_py
>
> copying lib/matplotlib/mpl-data/matplotlibrc ->
> build/lib.linux-x86_64-2.6/matplotlib/mpl-data
>
> running build_ext
>
> building 'matplotlib._png' extension
>
> 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/usr/local/include -I/usr/include -I.
> -I/home/webalert/.virtualenvs/mandala/lib/python2.6/site-packages/numpy/core/include
> -I. -I/usr/include/python2.6 -c src/_png.cpp -o
> build/temp.linux-x86_64-2.6/src/_png.o
>
> src/_png.cpp:10:20: error: png.h: No such file or directory
>
> In file included from
> /home/webalert/.virtualenvs/mandala/lib/python2.6/site-packages/numpy/core/include/numpy/ndarraytypes.h:1728,
>
> from
> /home/webalert/.virtualenvs/mandala/lib/python2.6/site-packages/numpy/core/include/numpy/ndarrayobject.h:17,
>
> from
> /home/webalert/.virtualenvs/mandala/lib/python2.6/site-packages/numpy/core/include/numpy/arrayobject.h:15,
>
> from src/_png.cpp:28:
>
> /home/webalert/.virtualenvs/mandala/lib/python2.6/site-packages/numpy/core/include/numpy/npy_deprecated_api.h:11:2:
> warning: #warning "Using deprecated NumPy API, disable it by #defining
> NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION"
>
> In file included from src/file_compat.h:4,
>
> from src/_png.cpp:30:
>
> /home/webalert/.virtualenvs/mandala/lib/python2.6/site-packages/numpy/core/include/numpy/npy_3kcompat.h:
> In function ‘PyObject* npy_PyFile_OpenFile(PyObject*, const char*)’:
>
> /home/webalert/.virtualenvs/mandala/lib/python2.6/site-packages/numpy/core/include/numpy/npy_3kcompat.h:247:
> warning: deprecated conversion from string constant to ‘char*’
>
> /home/webalert/.virtualenvs/mandala/lib/python2.6/site-packages/numpy/core/include/numpy/npy_3kcompat.h:
> In function ‘int npy_PyFile_CloseFile(PyObject*)’:
>
> /home/webalert/.virtualenvs/mandala/lib/python2.6/site-packages/numpy/core/include/numpy/npy_3kcompat.h:255:
> warning: deprecated conversion from string constant to ‘char*’
>
> src/_png.cpp: At global scope:
>
> src/_png.cpp:67: error: variable or field ‘write_png_data’ declared void
>
> src/_png.cpp:67: error: ‘png_structp’ was not declared in this scope
>
> src/_png.cpp:67: error: ‘png_bytep’ was not declared in this scope
>
> src/_png.cpp:67: error: ‘png_size_t’ was not declared in this scope
>
> /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-9i4ni6-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
> (mandala)[webalert@localhost ~]$
>
>
> Could it be libpng?
>
>
>
>
> --
> 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-tp41007p41019.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
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
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.

Showing 3 results of 3

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /