After downloading the source and following the instructions, I've been unable 
to build matplotlib on Ubuntu Hardy.  Any ideas?

BUILDING MATPLOTLIB
            matplotlib: 0.98.0
                python: 2.5.2 (r252:60911, Apr 21 2008, 11:12:42)  [GCC
                        4.2.3 (Ubuntu 4.2.3-2ubuntu7)]
              platform:
 linux2

REQUIRED
 DEPENDENCIES
                 numpy: 1.1.0
             freetype2: 9.16.3

OPTIONAL BACKEND DEPENDENCIES
                libpng: 1.2.15beta5
               Tkinter: no
                        * Using default library and include directories for
                        * Tcl and Tk because a Tk window failed to
 open.
                        * You may need to define DISPLAY for Tk to work so
                        * that setup can determine where your libraries are
                        * located. Tkinter present, but header files are not
                        * found. You may need to install development
                        *
 packages.
              wxPython: 2.8.7.1
                        * WxAgg extension not required for wxPython >= 2.8
                  Gtk+: gtk+: 2.12.9, glib: 2.16.3, pygtk: 2.12.1,
                        pygobject: 2.14.1
                        * Could not find Gtk+ headers in any of
                        *
 '/usr/local/include', '/usr/include', '.'
                    Qt: no
                   Qt4: no
                 Cairo: 1.4.0

OPTIONAL DATE/TIMEZONE DEPENDENCIES
              datetime: present, version unknown
              dateutil: 1.3
                  pytz: 2007k

OPTIONAL USETEX DEPENDENCIES
                dvipng:
 1.9
           ghostscript: 8.61
                 latex: 3.141592
               pdftops: 3.00

EXPERIMENTAL CONFIG PACKAGE DEPENDENCIES
             configobj: 4.4.0
      enthought.traits: 2.0.1b1

[Edit setup.cfg to suppress the above messages]
============================================================================
running build
running build_py
copying lib/matplotlib/mpl-data/matplotlibrc -> 
build/lib.linux-i686-2.5/matplotlib/mpl-data
copying lib/matplotlib/mpl-data/matplotlib.conf -> 
build/lib.linux-i686-2.5/matplotlib/mpl-data
running build_ext
building 'matplotlib.backends._backend_gdk' extension
gcc
 -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall 
-Wstrict-prototypes -fPIC 
-I/usr/lib/python2.5/site-packages/numpy-1.1.0-py2.5-linux-i686.egg/numpy/core/include
 -I/usr/local/include -I/usr/include -I. -I/usr/local/include -I/usr/include 
-I. -I/usr/include/python2.5 -c src/backend_gdk.c -o 
build/temp.linux-i686-2.5/src/backend_gdk.o
src/backend_gdk.c:9:25: error: pygtk/pygtk.h: No such file or directory
src/backend_gdk.c: In function ‘pixbuf_get_pixels_array’:
src/backend_gdk.c:28: error: ‘PyGObject’ undeclared (first use in this function)
src/backend_gdk.c:28: error: (Each undeclared identifier is reported only once
src/backend_gdk.c:28: error: for each function it appears in.)
src/backend_gdk.c:28: error: ‘py_pixbuf’ undeclared (first use in this function)
src/backend_gdk.c:29: error: ‘GdkPixbuf’ undeclared (first use in this function)
src/backend_gdk.c:29: error: ‘gdk_pixbuf’ undeclared (first
 use in this function)
src/backend_gdk.c:37: warning: implicit declaration of function ‘GDK_PIXBUF’
src/backend_gdk.c:43: warning: implicit declaration of function 
‘gdk_pixbuf_get_height’
src/backend_gdk.c:44: warning: implicit declaration of function 
‘gdk_pixbuf_get_width’
src/backend_gdk.c:45: warning: implicit declaration of function 
‘gdk_pixbuf_get_has_alpha’
src/backend_gdk.c:48: warning: implicit declaration of function 
‘gdk_pixbuf_get_pixels’
src/backend_gdk.c:53: warning: implicit declaration of function 
‘gdk_pixbuf_get_rowstride’
src/backend_gdk.c: In function ‘init_backend_gdk’:
src/backend_gdk.c:72: warning: implicit declaration of function ‘init_pygtk’
error: command 'gcc' failed with exit status 1





      
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to