I was installing lighttpd 1.5 the other day when I received this error:
configure: error: Package requirements (gthread-2.0 >= 2.4.0) were not met:
The new lighttpd 1.5 requires glib2-2.4.0 or greater. Thus, to install the necessary files, simply type:
# yum install glib2-devel
And you are all set.