Go Back   CodeCall Programming Forum > Software Development > Tutorials
Register Blogs Search Today's Posts Mark Forums Read

Tutorials Programming Tutorials - Post your tutorials here!

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-14-2007, 07:59 PM
John's Avatar
Co-Administrator
 
Join Date: Jul 2006
Age: 21
Posts: 5,831
John is just really niceJohn is just really niceJohn is just really niceJohn is just really niceJohn is just really nice
Send a message via AIM to John Send a message via MSN to John
Setting up PHP-Gtk [Ubuntu]

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:
Quote:
sudo apt-get update
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:
Quote:
cd php-gtk
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:
Quote:
extension=php_gtk2.so
Finally, test your installation by typing the following line:
Quote:
php -m | grep php-gtk
which should echo a single line that says:
Quote:
php-gtk
Thats it!
__________________


Last edited by John; 06-16-2009 at 10:58 PM.. Reason: fixed errors
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 08-04-2009, 12:14 PM
Newbie
 
Join Date: Aug 2009
Posts: 2
another_sam is an unknown quantity at this point
Re: Setting up PHP-Gtk [Ubuntu]

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 08-05-2009, 01:34 PM
John's Avatar
Co-Administrator
 
Join Date: Jul 2006
Age: 21
Posts: 5,831
John is just really niceJohn is just really niceJohn is just really niceJohn is just really niceJohn is just really nice
Send a message via AIM to John Send a message via MSN to John
Re: Setting up PHP-Gtk [Ubuntu]

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.
__________________

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 08-11-2009, 03:03 PM
Newbie
 
Join Date: Aug 2009
Posts: 2
another_sam is an unknown quantity at this point
Re: Setting up PHP-Gtk [Ubuntu]

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP 4 end of life announcement Jordan News 4 08-30-2007 10:55 AM
Setting up PHP on Windows dirkfirst PHP Forum 21 12-18-2006 06:06 PM


All times are GMT -5. The time now is 11:40 PM.


vBulletin v3.8.0 ©2010, Jelsoft Enterprises Ltd.


no new posts

LinkBacks Enabled by vBSEO 3.1.0