This is an update to a document I wrote 4 years ago about compiling PHP-GTK on any Unixesque system you could get your hands on, but this one only for Ubuntu 10+. At the time of writing I was using a freshly installed Ubuntu 10.10 system to do this, so for the sake of completeness we are going to assume the system has nothing we need as though it was fresh off the installation disk a few minutes ago.

Here is an overview of what we have to do. The order is very important. If you do not follow the proper order things will not work right. This becomes very important when it comes time to build PHP-GTK itself.

  • Install subversion.
  • Install PHP5.
  • Install GTK development packages.
  • Install the Cairo module for PHP.
  • Get, patch, and compile PHP-GTK.

And here is how we do it. You are going to need a terminal window.

Continue reading about compiling PHP-GTK on Ubuntu