Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am running Ubuntu 12.04 and I am trying to compile the cpabe toolkit, but first I have to compile libbswabe. However, when I try to build libbswabe-0.9 it gives me an error stating that glib.h cannot be found. Here is the relevant text from the config.log file:

configure:4013: checking for GLIB - version >= 2.0.0
configure:4145: result: no
configure:4173: gcc -o conftest -O3 -Wall   -O3 -Wall conftest.c -lcrypto   >&5
conftest.c:31:18: fatal error: glib.h: No such file or directory
compilation terminated.

What is glib.h and how do I install it? And I did successfully enter sudo apt-get install libglib2.0-dev into the command line.

share|improve this question
If you enter dpkg -S glib.h, it should return libglib2.0-dev: /usr/include/glib-2.0/glib.h if you have libglib2.0-dev installed. – user76204 Jan 2 '13 at 21:22
It did just that, but it still is not found when I try to compile libbswabe. – Melab Jan 3 '13 at 5:10

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.