Install Fedora 4 x86_64

Hi all,

I'm trying to install mpl (I've tried both 0.86 and 0.85) on an x86_64 machine running Fedora Core 4. I saw one post related to gtk but it referred to a problem different from mine. Below is the last few lines from stderr...

> python setup.py build

....

In file included from src/_nc_backend_gdk.c:12:
/usr/include/pygtk-2.0/pygtk/pygtk.h:8:21: error: gtk/gtk.h: No such file or directory
In file included from src/_nc_backend_gdk.c:12:
/usr/include/pygtk-2.0/pygtk/pygtk.h:14: error: syntax error before ‘atom’
/usr/include/pygtk-2.0/pygtk/pygtk.h:16: error: syntax error before ‘GdkRectangle’
/usr/include/pygtk-2.0/pygtk/pygtk.h:23: error: syntax error before ‘GdkAtom’
/usr/include/pygtk-2.0/pygtk/pygtk.h:23: warning: no semicolon at end of struct or union
/usr/include/pygtk-2.0/pygtk/pygtk.h:24: warning: data definition has no type or storage class
src/_nc_backend_gdk.c: In function ‘pixbuf_get_pixels_array’:
src/_nc_backend_gdk.c:32: error: ‘GdkPixbuf’ undeclared (first use in this function)
src/_nc_backend_gdk.c:32: error: (Each undeclared identifier is reported only once
src/_nc_backend_gdk.c:32: error: for each function it appears in.)
src/_nc_backend_gdk.c:32: error: ‘gdk_pixbuf’ undeclared (first use in this function)
src/_nc_backend_gdk.c:52: warning: cast to pointer from integer of different size
error: command 'gcc' failed with exit status 1

Now the second line up above says I need gtk.h, which much to my surprise is nowhere on my system. I have gtk2 and gtk+ devel rpms installed and numerous other gtk related packages including pygtk. Is it possible that pygtk installed correctly without gtk or am I missing something subtle (or completely obvious).

Thanks for any help,
Derrick

···

--
Derrick Snowden
PhOD/AOML/NOAA
4301 Rickenbacker Causeway
Miami, FL 33149
Office: 305.361.4322 Fax: 305.361.4392

Those should really be part of the gtk2-dev packages. At least they
are on ubuntu.

/usr/include/gtk-2.0/gtk/gtk.h

···

On 1/11/06, Derrick Snowden <Derrick.Snowden@...259...> wrote:

Hi all,

I'm trying to install mpl (I've tried both 0.86 and 0.85) on an x86_64
machine running Fedora Core 4. I saw one post related to gtk but it
referred to a problem different from mine. Below is the last few lines
from stderr...

> python setup.py build

....

In file included from src/_nc_backend_gdk.c:12:
/usr/include/pygtk-2.0/pygtk/pygtk.h:8:21: error: gtk/gtk.h: No such
file or directory
In file included from src/_nc_backend_gdk.c:12:
/usr/include/pygtk-2.0/pygtk/pygtk.h:14: error: syntax error before 'atom'
/usr/include/pygtk-2.0/pygtk/pygtk.h:16: error: syntax error before
'GdkRectangle'
/usr/include/pygtk-2.0/pygtk/pygtk.h:23: error: syntax error before
'GdkAtom'
/usr/include/pygtk-2.0/pygtk/pygtk.h:23: warning: no semicolon at end of
struct or union
/usr/include/pygtk-2.0/pygtk/pygtk.h:24: warning: data definition has no
type or storage class
src/_nc_backend_gdk.c: In function 'pixbuf_get_pixels_array':
src/_nc_backend_gdk.c:32: error: 'GdkPixbuf' undeclared (first use in
this function)
src/_nc_backend_gdk.c:32: error: (Each undeclared identifier is reported
only once
src/_nc_backend_gdk.c:32: error: for each function it appears in.)
src/_nc_backend_gdk.c:32: error: 'gdk_pixbuf' undeclared (first use in
this function)
src/_nc_backend_gdk.c:52: warning: cast to pointer from integer of
different size
error: command 'gcc' failed with exit status 1

Now the second line up above says I need gtk.h, which much to my
surprise is nowhere on my system. I have gtk2 and gtk+ devel rpms
installed and numerous other gtk related packages including pygtk. Is it
possible that pygtk installed correctly without gtk or am I missing
something subtle (or completely obvious).

Thanks for any help,
Derrick

--
Derrick Snowden
PhOD/AOML/NOAA
4301 Rickenbacker Causeway
Miami, FL 33149
Office: 305.361.4322 Fax: 305.361.4392

Thanks Charlie, that was it.

yum install gtk2-devel

did the trick. Incidentally I found python-matplotlib-0.85 at the fedora extras repo. If I remembered that it certainly would have made things easier. Oh well, now I have 0.86.

Thanks all who replied.

Derrick

Charlie Moad wrote:

···

Those should really be part of the gtk2-dev packages. At least they
are on ubuntu.

/usr/include/gtk-2.0/gtk/gtk.h

On 1/11/06, Derrick Snowden <Derrick.Snowden@...259...> wrote:

Hi all,

I'm trying to install mpl (I've tried both 0.86 and 0.85) on an x86_64
machine running Fedora Core 4. I saw one post related to gtk but it
referred to a problem different from mine. Below is the last few lines
from stderr...

> python setup.py build

....

In file included from src/_nc_backend_gdk.c:12:
/usr/include/pygtk-2.0/pygtk/pygtk.h:8:21: error: gtk/gtk.h: No such
file or directory
In file included from src/_nc_backend_gdk.c:12:
/usr/include/pygtk-2.0/pygtk/pygtk.h:14: error: syntax error before 'atom'
/usr/include/pygtk-2.0/pygtk/pygtk.h:16: error: syntax error before
'GdkRectangle'
/usr/include/pygtk-2.0/pygtk/pygtk.h:23: error: syntax error before
'GdkAtom'
/usr/include/pygtk-2.0/pygtk/pygtk.h:23: warning: no semicolon at end of
struct or union
/usr/include/pygtk-2.0/pygtk/pygtk.h:24: warning: data definition has no
type or storage class
src/_nc_backend_gdk.c: In function 'pixbuf_get_pixels_array':
src/_nc_backend_gdk.c:32: error: 'GdkPixbuf' undeclared (first use in
this function)
src/_nc_backend_gdk.c:32: error: (Each undeclared identifier is reported
only once
src/_nc_backend_gdk.c:32: error: for each function it appears in.)
src/_nc_backend_gdk.c:32: error: 'gdk_pixbuf' undeclared (first use in
this function)
src/_nc_backend_gdk.c:52: warning: cast to pointer from integer of
different size
error: command 'gcc' failed with exit status 1

Now the second line up above says I need gtk.h, which much to my
surprise is nowhere on my system. I have gtk2 and gtk+ devel rpms
installed and numerous other gtk related packages including pygtk. Is it
possible that pygtk installed correctly without gtk or am I missing
something subtle (or completely obvious).

Thanks for any help,
Derrick

--
Derrick Snowden
PhOD/AOML/NOAA
4301 Rickenbacker Causeway
Miami, FL 33149
Office: 305.361.4322 Fax: 305.361.4392

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options

--
Derrick Snowden
PhOD/AOML/NOAA
4301 Rickenbacker Causeway
Miami, FL 33149
Office: 305.361.4322 Fax: 305.361.4392

Thanks Charlie, that was it.

yum install gtk2-devel

did the trick. Incidentally I found python-matplotlib-0.85 at the
fedora extras repo. If I remembered that it certainly would have made
things easier. Oh well, now I have 0.86.

  0.86 should be soon there as well. It was build already and it only
needs to be signed. (AFAIK)

  If you or anyone else has problems with it I read this list and
although I am not its maintaineir I volunteer to report and got those
package bugs fixed In Fedora.

···

On 11/01/06, Derrick Snowden <Derrick.Snowden@...259...> wrote:

Thanks all who replied.

Derrick

--
José Matos