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
Last edited by John; 06-16-2009 at 07:58 PM. Reason: fixed errors
I get the next at step 3 (cvs -d :pserver:cvsread@cvs.php.net:/repository login):
Fatal error, aborting.
cvsread: no such user
I'm using Ubuntu 9.04.
They have made changes to their repositories since I wrote this. Take a look at the "CVS Version" section here: PHP-GTK : Downloads Between that and this, you should be able to get it installed.
I've reached the ./buildconf . The output is:
Configuring for:
PHP Api Version: 20041225
Zend Module Api No: 20060613
Zend Extension Api No: 220060519
rebuilding aclocal.m4
rebuilding configure
configure.in:77: warning: LTOPTIONS_VERSION is m4_require'd but not m4_defun'd
aclocal.m4:2912: LT_INIT is expanded from...
aclocal.m4:2947: AC_PROG_LIBTOOL is expanded from...
configure.in:77: the top level
configure.in:77: warning: LTSUGAR_VERSION is m4_require'd but not m4_defun'd
configure.in:77: warning: LTVERSION_VERSION is m4_require'd but not m4_defun'd
configure.in:77: warning: LTOBSOLETE_VERSION is m4_require'd but not m4_defun'd
configure:12798: error: possibly undefined macro: m4_ifval
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
configure:16506: error: possibly undefined macro: _LT_SET_OPTIONS
configure:16506: error: possibly undefined macro: LT_INIT
make[1]: *** [configure] Error 1
make: *** [all] Error 2
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks