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.sudo apt-get update
Log in to the PHP anonymous CVS server (use phpfi as the password):sudo apt-get install build-essential php5-cli php5-dev libgtk2.0-dev libglade2-dev cvs
Obtain the PHP-GTK tree.cvs -d :pserver:cvsread@cvs.php.net:/repository loginMove into the source tree:cvs -d :pserver:cvsread@cvs.php.net:/repository co php-gtkConfigure and install:cd php-gtkOpen your php.ini./buildconf
./configure
make
sudo make install
Scroll to the extensions section and add the following line:sudo nano /etc/php5/cli/php.ini
Finally, test your installation by typing the following line:extension=php_gtk2.so
which should echo a single line that says:php -m | grep php-gtk
Thats it!php-gtk


LinkBack URL
About LinkBacks








Reply With Quote


Bookmarks
Algorithms and Data Structures
Java tutorials
Algorithms Forum