glib.h make error. fatal error: glib.h: No such file or directory

Solution 1:

You may probably just need the -dev package containing glib.h: libglib2.0-dev

sudo apt-get install libglib2.0-dev

http://packages.ubuntu.com and its Search the contents of packages form can help finding such development packages when you only know the header filename.