error: Setup script exited with error: command 'gcc' failed with exit status 1

Hello, I’m having trouble installing Matplotlib. Both easy_install and the latest svn checkout give similar errors : http://pastebin.com/5g0RsdRx

any ideas ?

You are missing headers from a number of critical libraries. Try using
your package manager to install the development packages of the
libraries mentioned in the build report:

             freetype2: found, but unknown version (no pkg-config)
                        * WARNING: Could not find 'freetype2' headers in any
                        * of '/usr/local/include', '/usr/include', '.',
                        * '/usr/local/include/freetype2',
                        * '/usr/include/freetype2', './freetype2'.

OPTIONAL BACKEND DEPENDENCIES
                libpng: found, but unknown version (no pkg-config)
                        * Could not find 'libpng' headers in any of
                        * '/usr/local/include', '/usr/include', '.'
               Tkinter: no
                        * TKAgg requires Tkinter
              wxPython: 2.8.10.1
                        * WxAgg extension not required for wxPython >= 2.8
                  Gtk+: gtk+: 2.20.1, glib: 2.24.1, pygtk: 2.17.0,
                        pygobject: 2.21.1
                        * Could not find Gtk+ headers in any of
                        * '/usr/local/include', '/usr/include', '.'

···

On Tue, Feb 22, 2011 at 3:17 PM, M.Rule <mrule7404@...287...> wrote:

Hello, I'm having trouble installing Matplotlib. Both easy_install and the
latest svn checkout give similar errors : http://pastebin.com/5g0RsdRx
any ideas ?

installed:

libfreetype6-dev
libpng12-dev

python-tk

libgtk2.0-dev

everything seems good, just need to configure GUI backend now, thanks.

···

On Tue, Feb 22, 2011 at 3:22 PM, Darren Dale <dsdale24@…287…> wrote:

On Tue, Feb 22, 2011 at 3:17 PM, M.Rule <mrule7404@…287…> wrote:

Hello, I’m having trouble installing Matplotlib. Both easy_install and the

latest svn checkout give similar errors : http://pastebin.com/5g0RsdRx

any ideas ?

You are missing headers from a number of critical libraries. Try using

your package manager to install the development packages of the

libraries mentioned in the build report:

         freetype2: found, but unknown version (no pkg-config)

                    * WARNING: Could not find 'freetype2' headers in any

                    * of '/usr/local/include', '/usr/include', '.',

                    * '/usr/local/include/freetype2',

                    * '/usr/include/freetype2', './freetype2'.

OPTIONAL BACKEND DEPENDENCIES

            libpng: found, but unknown version (no pkg-config)

                    * Could not find 'libpng' headers in any of

                    * '/usr/local/include', '/usr/include', '.'

           Tkinter: no

                    * TKAgg requires Tkinter

          wxPython: 2.8.10.1

                    * WxAgg extension not required for wxPython >= 2.8

              Gtk+: gtk+: 2.20.1, glib: 2.24.1, pygtk: 2.17.0,

                    pygobject: 2.21.1

                    * Could not find Gtk+ headers in any of

                    * '/usr/local/include', '/usr/include', '.'

If you are on Ubuntu, you can do this easily with the following command:

sudo apt-get build-dep python-matplotlib

Then you can try building matplotlib.

Ben Root

···

On Tue, Feb 22, 2011 at 2:17 PM, M.Rule <mrule7404@…2015…87…> wrote:

Hello, I’m having trouble installing Matplotlib. Both easy_install and the latest svn checkout give similar errors : http://pastebin.com/5g0RsdRx

any ideas ?


Free Software Download: Index, Search & Analyze Logs and other IT data in

Real-Time with Splunk. Collect, index and harness all the fast moving IT data

generated by your applications, servers and devices whether physical, virtual

or in the cloud. Deliver compliance at lower cost and gain new business

insights. http://p.sf.net/sfu/splunk-dev2dev


Matplotlib-users mailing list

Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users