+ Reply to Thread
Results 1 to 4 of 4

Thread: Setting up PHP-Gtk [Ubuntu]

  1. #1
    Join Date
    Jul 2006
    Location
    Amherst, New York, United States
    Posts
    6,277
    Blog Entries
    26
    Rep Power
    20

    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:
    sudo apt-get update
    Next, install the required packages.
    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):
    cvs -d :pserver:cvsread@cvs.php.net:/repository login
    Obtain the PHP-GTK tree.
    cvs -d :pserver:cvsread@cvs.php.net:/repository co php-gtk
    Move into the source tree:
    cd php-gtk
    Configure and install:
    ./buildconf
    ./configure
    make
    sudo make install
    Open your php.ini
    sudo nano /etc/php5/cli/php.ini
    Scroll to the extensions section and add the following line:
    extension=php_gtk2.so
    Finally, test your installation by typing the following line:
    php -m | grep php-gtk
    which should echo a single line that says:
    php-gtk
    Thats it!
    Last edited by John; 06-16-2009 at 07:58 PM. Reason: fixed errors

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Location
    Advertising world
    Posts
    Many

     
  3. #2
    another_sam is offline Newbie
    Join Date
    Aug 2009
    Posts
    2
    Rep Power
    0

    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.

  4. #3
    Join Date
    Jul 2006
    Location
    Amherst, New York, United States
    Posts
    6,277
    Blog Entries
    26
    Rep Power
    20

    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.

  5. #4
    another_sam is offline Newbie
    Join Date
    Aug 2009
    Posts
    2
    Rep Power
    0

    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

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Question about Ubuntu Desktop and Ubuntu Server editions
    By liamzebedee in forum Linux Installation & Configuration
    Replies: 1
    Last Post: 04-29-2011, 10:47 PM
  2. Setting Margins
    By fuggles in forum HTML Programming
    Replies: 2
    Last Post: 08-01-2009, 11:37 AM
  3. Setting up a LAMP Server [Ubuntu]
    By John in forum Tutorials
    Replies: 10
    Last Post: 05-27-2009, 05:37 PM
  4. c++ setting up my computer what do i need
    By justinb09 in forum C and C++
    Replies: 16
    Last Post: 05-11-2009, 08:49 AM
  5. setting up my pc
    By boarder923 in forum C and C++
    Replies: 3
    Last Post: 10-23-2008, 07:46 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts