How to install gtk development dependencies on Ubuntu?

$ sudo apt-get install libgtk2.0-dev

Generally speaking to build things based on libfoo, you need libfoo-dev.

In addition, to install anything that is needed to build a package, say gedit, you can run:

$ sudo apt-get build-dep gedit

Searching http://packages.ubuntu.com/ or Synaptic can help.

Leave a Comment