+ Reply to Thread
Results 1 to 4 of 4

Thread: Setting up PHP-Gtk [Ubuntu]

  1. #1
    Co-Administrator John is a glorious beacon of light John is a glorious beacon of light John is a glorious beacon of light John is a glorious beacon of light John is a glorious beacon of light John's Avatar
    Join Date
    Jul 2006
    Age
    21
    Posts
    5,885
    Blog Entries
    25

    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 09:58 PM. Reason: fixed errors

  2. #2
    Newbie another_sam is an unknown quantity at this point
    Join Date
    Aug 2009
    Posts
    2

    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.

  3. #3
    Co-Administrator John is a glorious beacon of light John is a glorious beacon of light John is a glorious beacon of light John is a glorious beacon of light John is a glorious beacon of light John's Avatar
    Join Date
    Jul 2006
    Age
    21
    Posts
    5,885
    Blog Entries
    25

    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.

  4. #4
    Newbie another_sam is an unknown quantity at this point
    Join Date
    Aug 2009
    Posts
    2

    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. PHP 4 end of life announcement
    By Jordan in forum News
    Replies: 4
    Last Post: 08-30-2007, 09:55 AM
  2. Setting up PHP on Windows
    By dirkfirst in forum PHP Forum
    Replies: 21
    Last Post: 12-18-2006, 05:06 PM

Bookmarks

Bookmarks

     
        Algorithms and Data Structures

        Java tutorials

        Algorithms Forum

Posting Permissions

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