[Gtk-sharp-list] Gtk-sharp RedHat Linux installation

chuchiehliu at micron.com chuchiehliu at micron.com
Thu Oct 8 15:29:11 EDT 2009


I am trying to install gtk-sharp and thus in process installing gtk+, glib, Cairo, atk, etc.  When I done "make", goto root and do a "make install" for gtk+-2.18.2, I got some error.  Any idea what it means and how to fix it?

Thanks,
Jerry


make[3]: Entering directory `/tmp/mono/gtk+-2.18.2/gdk'
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -DG_LOG_DOMAIN=\"Gdk\" -DGDK_COMPILATION -I.. -I../gdk -I../gdk-pixbuf -DG_DISABLE_CAST_CHECKS -pthread -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include/pango-1.0 -I/usr/local/include/cairo -I/usr/local/include/pixman-1 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/libpng12      -DG_DISABLE_SINGLE_INCLUDES -DATK_DISABLE_SINGLE_INCLUDES -DGDK_PIXBUF_DISABLE_SINGLE_INCLUDES -DGTK_DISABLE_SINGLE_INCLUDES    -DGDK_PIXBUF_DISABLE_DEPRECATED -g -O2 -Wall -MT gdkpango.lo -MD -MP -MF .deps/gdkpango.Tpo -c -o gdkpango.lo gdkpango.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -DG_LOG_DOMAIN=\"Gdk\" -DGDK_COMPILATION -I.. -I../gdk -I../gdk-pixbuf -DG_DISABLE_CAST_CHECKS -pthread -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include/pango-1.0 -I/usr/local/include/cairo -I/usr/local/include/pixman-1 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/libpng12 -DG_DISABLE_SINGLE_INCLUDES -DATK_DISABLE_SINGLE_INCLUDES -DGDK_PIXBUF_DISABLE_SINGLE_INCLUDES -DGTK_DISABLE_SINGLE_INCLUDES -DGDK_PIXBUF_DISABLE_DEPRECATED -g -O2 -Wall -MT gdkpango.lo -MD -MP -MF .deps/gdkpango.Tpo -c gdkpango.c  -fPIC-DPIC -o .libs/gdkpango.o
gdkpango.c: In function 'gdk_pango_renderer_draw_shape':
gdkpango.c:324: error: 'PangoCairoShapeRendererFunc' undeclared (first use in this function)
gdkpango.c:324: error: (Each undeclared identifier is reported only once
gdkpango.c:324: error: for each function it appears in.)
gdkpango.c:324: error: expected ';' before 'shape_renderer'
gdkpango.c:334: error: 'shape_renderer' undeclared (first use in this function)
gdkpango.c:334: warning: implicit declaration of function 'pango_cairo_context_get_shape_renderer'
gdkpango.c:350: warning: implicit declaration of function 'shape_renderer'
make[3]: *** [gdkpango.lo] Error 1
make[3]: Leaving directory `/tmp/mono/gtk+-2.18.2/gdk'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory `/tmp/mono/gtk+-2.18.2/gdk'
make[1]: *** [install] Error 2
make[1]: Leaving directory `/tmp/mono/gtk+-2.18.2/gdk'
make: *** [install-recursive] Error 1
root at lnxeng02:[/tmp/mono/gtk+-2.18.2] {3} % cd ..




-----Original Message-----
From: Chris Howie [mailto:cdhowie at gmail.com] 
Sent: Wednesday, October 07, 2009 6:28 PM
To: chuchiehliu
Cc: gtk-sharp-list at lists.ximian.com
Subject: Re: [Gtk-sharp-list] Gtk-sharp RedHat Linux installation

On Wed, Oct 7, 2009 at 8:12 PM,  <chuchiehliu at micron.com> wrote:
> Thanks for your help. I am new to Linux and mono world.

Welcome.  We all start somewhere.  :)

> (1) If I did a "sudo -s" and execute the ./configure --prefix=/usr/local.  The following is what I got from console.  My "where mono" is at /usr/local/bin/mono and thus add prefix as above.  There is an error from console " Requested 'gtk+-2.0 >= 2.12.0' but version of GTK+ is 2.10.4".  I am asking my Linux admin on this and not sure whether we can upgrade GTK+ (I am not sure where it come from? GNU installation?).  Is there a way to get around it (use GTK+ 2.10.4 instead of >= 2.12.0)?  Should I try older version of gtk-sharp?

You would need to use an older Gtk# if you cannot use a newer GTK+.

> (2) If I login as myself and do a "./configure --prefix=/usr/local", the following is what I got from console.  It sure looks like I have some permission issue.
>
> chuchiehliu at lnxeng02:[/tmp/mono/gtk-sharp-2.12.9] {3} % ./configure --prefix=/usr/local
> ./configure: line 1739: config.log: Permission denied
> ./configure: line 1749: config.log: Permission denied

This is because you ran ./configure as root earlier, so the log file
is now owned by root and your user can't touch it.  If I were in your
shoes I would remove the whole /tmp/mono/gtk-sharp-2.12.9 directory
(as root, so you have permissions) and then extract it as a normal
user.  (Also, I would not use /tmp for this -- it gets wiped when you
reboot.  I'd create a "src" directory in my home directory and compile
stuff in there.)

Good luck!

-- 
Chris Howie
http://www.chrishowie.com
http://en.wikipedia.org/wiki/User:Crazycomputers


More information about the Gtk-sharp-list mailing list