One of PHP's nifty extensions is PHP-Gtk which acts as wrapper around the GTK library. Under Ubuntu Gusty Gibbons with the use of the synaptic package manager, installing this extension is simple.
First update your current repositories:
Next, install the required packages.
Quote:
|
sudo apt-get install build-essential php5-cli php5-dev libgtk2.0-dev libglade2-dev cvs
|
Log in to the PHP anonymous CVS server (use phpfi as the password):
Quote:
|
cvs -d :pserver:cvsread@cvs.php.net:/repository login
|
Obtain the PHP-GTK tree.
Quote:
|
cvs -d :pserver:cvsread@cvs.php.net:/repository co php-gtk
|
Move into the source tree:
Configure and install:
Quote:
./buildconf
./configure
make
sudo make install
|
Open your php.ini
Quote:
|
sudo nano /etc/php5/cli/php.ini
|
Scroll to the extensions section and add the following line:
Finally, test your installation by typing the following line:
which should echo a single line that says:
Thats it!