pkg-config is a handy little tool for querying compiler and linker flags.
ie. Try the following command: “pkg-config --cflags gtk±2.0” and you’ll see a lot of include directories.
This used to be done using tiny whatever-config programs (Gnome 1.x) but now every Gnome program is using one universal program (pkg-config) for saving/querying all compiler flags.
Using “pkg-config --list-all” you can see what programs / libraries are installed on your system (this doesn’t have anything to do with rpm btw, it’s just for when you’re compiling things yourself).
Anyway, on Red Hat, everything is installed into /usr by default.
But the autotools default to /usr/local.
pkg-config is installed into /usr so it automatically looks into /usr/lib/pkgconfig, but not /usr/local/lib/pkgconfig since it isn’t installed into /usr/local.
You can fix that by adding “export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig” to your ~/.bashrc or ~/.bash_profile (doesn’t really matter wich one)
To install new software (from source) into /usr you can use the prefix option when configuring the software, eg: “./configure --prefix=/usr”
Personally I do this for every type of program I’m installing from source.
(this is not a good thing to do though, system specific software should actually go in /usr and additional software should go in /usr/local or /opt/blah)
The reason you can’t find a RPM or so for glib is because glib is a part of Gtk+ 
Installing Gtk+ 2.2 will also get you Glib 2.2
Also, if you’re going to install Gtk+ 2.2, I’d also install Gnome 2.2 (if you’re using Gnome, that is) because it’s a bit nicer and faster in some areas (especially Nautilus), and more apps are HiG-ified (HiG == Human Interface Guidelines).
Installing Gnome 2.2 is very easy using the Garnome scripts (there’s also some scripts in it to install Gtkmm).
Well, I hope this long and way offtopic post helps a bit :mrgreen:
Originally posted by jmg:
[i]
richardve,
Wow. I haven’t posted here in a while (somehow I keep making my way back) but I recognize your name.
[/i]
Woah, that’s the first time I actually get recognized by someone 
(and yeay, we’re ‘oldbies’ now)