title: How to install gtk development dependencies on Ubuntu?
body: <p>I have the code from <a href="https://developer.gnome.org/gtk-tutorial/2.24/c39.html" rel="noreferrer">GTK tutorial</a> in <code>base.c</code>.</p>
  
  <p>I am working on <strong>Ubuntu</strong> and when I compile using </p>
  
  
  
  <pre class="lang-none prettyprint-override"><code>$ gcc base.c -o base `pkg-config --cflags --libs gtk+-2.0` 
  </code></pre>
  
  <p>I get the following <em>error</em></p>
  
  <pre class="lang-none prettyprint-override"><code>Package gtk+-2.0 was not found in the pkg-config search path.
  Perhaps you should add the directory containing `gtk+-2.0.pc' to the PKG_CONFIG_PATH environment variable
  No package 'gtk+-2.0' found
  base.c:1:20: fatal error: gtk/gtk.h: No such file or directory compilation terminated.
  </code></pre>
  
  <p>Being new to <em>linux</em>, can someone help me in setting up the environment so that I can <em>compile/run</em> the program successfully?</p>