title: glib.h: No such file or directory
body: <p>I tried installing gtk and glib using</p>
  
  <pre><code>sudo apt-get install libglib2.0-dev
  </code></pre>
  
  <p>and</p>
  
  <pre><code>sudo apt-get install libgtk2.0-dev
  </code></pre>
  
  <p>but locate glib.h does not return any path for glib
  results of locate glib.h are</p>
  
  <pre><code>$ locate glib.h
  /home/asus/Qt5.8.0/5.8/Src/qtbase/src/3rdparty/libjpeg/jpeglib.h
  /home/asus/Qt5.8.0/5.8/Src/qtimageformats/src/3rdparty/jasper/src/libjasper/jpg/jpg_jpeglib.h
  /home/asus/Qt5.8.0/5.8/Src/qtwebengine/src/3rdparty/chromium/base/message_loop/message_pump_glib.h
  /home/asus/Qt5.8.0/5.8/Src/qtwebengine/src/3rdparty/chromium/third_party/harfbuzz-ng/src/hb-glib.h
  /home/asus/Qt5.8.0/5.8/Src/qtwebengine/src/3rdparty/chromium/third_party/libjpeg/jpeglib.h
  /home/asus/Qt5.8.0/5.8/Src/qtwebengine/src/3rdparty/chromium/third_party/libjpeg_turbo/jpeglib.h
  /home/asus/Qt5.8.0/5.8/Src/qtwebengine/src/3rdparty/chromium/third_party/pdfium/third_party/libjpeg/jpeglib.h
  /home/asus/Qt5.8.0/5.8/Src/qtwebengine/src/3rdparty/chromium/ui/events/platform/x11/x11_event_source_glib.h
  /usr/include/reglib/reglib.h
  /usr/src/linux-headers-4.8.0-36-generic/include/config/blk/dev/bsglib.h
  </code></pre>
  
  <p>using updatedb solves this error.</p>
  
  <p>But I get 1 more error
  fatal error: glibconfig.h: No such file or directory</p>
  
  <p>I think it is related to glib also</p>
  
  <p>I got the answer <code>pkg-config --cflags --libs gtk+-2.0</code> flag solves this</p>