Getting missing dependency for compilation glib-compile-schemas

You need the header files. In Ubuntu and other Debian-based operating systems, header files are provided by -dev packages. So install libglib2.0-dev Install libglib2.0-dev, by clicking that link or by running:

sudo apt-get update && sudo apt-get install libglib2.0-dev

As far as I can tell, glib-compile-schemas is not available in any package for 10.04 LTS (Lucid). What I did to get around this, is to compile and install the latest glib manually, using: ./configure && make && make install. I also needed to add /usr/local/lib to my LD_LIBRARY_PATH.