[ghemical-devel] Compiling ghemical on Redhat Linux

Tommi Hassinen thassine at messi.uku.fi
Fri Aug 4 15:32:29 EDT 2006


On Fri, 4 Aug 2006, Rzepa, Henry wrote:

> We are having problems compiling ghemical on  Redhat (Enterprise  3).
>
> The specific error is
>
> checking for GTK... Package gtk+-2.0 was not found in the pkg-config search path.
> Perhaps you should add the directory containing `gtk+-2.0.pc'
> to the PKG_CONFIG_PATH environment variable
> No package 'gtk+-2.0' found
> configure: error: Package requirements (gtk+-2.0 >= 2.6.0) were not met:

The PKG_CONFIG_PATH environment variable usually defaults to 
/usr/lib/pkgconfig/ ; please take a look if you have it in your system. In 
my system it looks like this:

$ ll /usr/lib/pkgconfig/
total 136
-rw-r--r--  1 root root 244 2004-12-13 00:52 atk.pc
-rw-r--r--  1 root root 235 2005-03-11 05:03 fontconfig.pc
-rw-r--r--  1 root root 260 2005-04-24 16:11 freetype2.pc
-rw-r--r--  1 root root 350 2005-11-20 22:29 gdk-2.0.pc
-rw-r--r--  1 root root 456 2004-09-07 09:30 gdkglext-1.0.pc
-rw-r--r--  1 root root 456 2004-09-07 09:30 gdkglext-x11-1.0.pc
-rw-r--r--  1 root root 278 2005-11-20 22:29 gdk-pixbuf-2.0.pc
-rw-r--r--  1 root root 281 2005-11-20 22:29 gdk-pixbuf-xlib-2.0.pc
-rw-r--r--  1 root root 350 2005-11-20 22:29 gdk-x11-2.0.pc
-rw-r--r--  1 root root 329 2005-04-06 23:24 glib-2.0.pc
-rw-r--r--  1 root root 272 2005-04-06 23:24 gmodule-2.0.pc
-rw-r--r--  1 root root 251 2005-04-06 23:24 gmodule-no-export-2.0.pc
-rw-r--r--  1 root root 225 2005-03-02 01:41 gnome-icon-theme.pc
-rw-r--r--  1 root root 447 2005-05-11 00:03 gnome-media-profiles.pc
-rw-r--r--  1 root root 215 2005-01-26 17:18 gnome-mime-data-2.0.pc
-rw-r--r--  1 root root 227 2004-09-26 12:19 gnome-system-tools.pc
-rw-r--r--  1 root root 239 2005-04-06 23:24 gobject-2.0.pc
-rw-r--r--  1 root root 234 2005-04-06 23:24 gthread-2.0.pc
-rw-r--r--  1 root root 330 2005-11-20 22:29 gtk+-2.0.pc
-rw-r--r--  1 root root 377 2004-09-07 09:30 gtkglext-1.0.pc
-rw-r--r--  1 root root 377 2004-09-07 09:30 gtkglext-x11-1.0.pc
-rw-r--r--  1 root root 330 2005-11-20 22:29 gtk+-x11-2.0.pc
-rw-r--r--  1 root root 474 2005-02-28 20:51 libglade-2.0.pc
-rw-r--r--  1 root root 270 2005-04-09 13:06 libxml-2.0.pc
-rw-r--r--  1 root root 284 2005-03-06 11:04 pangoft2.pc
-rw-r--r--  1 root root 309 2005-03-06 11:04 pango.pc
-rw-r--r--  1 root root 293 2005-03-06 11:02 pangoxft.pc
-rw-r--r--  1 root root 255 2005-03-06 11:02 pangox.pc
-rw-r--r--  1 root root 179 2004-02-20 07:35 render.pc
-rw-r--r--  1 root root 195 2005-05-16 00:10 rhythmbox.pc
-rw-r--r--  1 root root 198 2005-04-30 17:06 shared-mime-info.pc
-rw-r--r--  1 root root 244 2004-09-26 12:18 system-tools-backends.pc
-rw-r--r--  1 root root 440 2005-04-02 01:31 xft.pc
-rw-r--r--  1 root root 248 2004-03-10 08:29 xrender.pc

Please notice the file gtk+-2.0.pc ; if you do not have it, then gtk+ is 
not yet properly installed in your system so that you could compile gtk+ 
-programs, although you may be able to *run* them.

Please note that just installing a package like

 	libgtk2.0.rpm

is enough for runnning programs, but for compiling them you need an 
additional package, often named as

 	libgtk2.0-dev.rpm

or something like that. I don't know exact names because I use Debian 
which uses .deb packages instead of .rpm packages.

I hope this helps,

 	Tommi



More information about the ghemical-devel mailing list