Error "configure: error: GLib >= 2.28 is required" while configuring bluez stack

I was able to solve that compiler error by issuing:

sudo apt-get install glib2.0

You might also like to refer to Ubuntu 13.04 and bluez-5.8 configure: error: systemd system unit directory is required