Results 1 to 8 of 8

Thread: How to build PHP5-GTK2 on Ubuntu Lucid Lynx 10.04?

  1. #1
    Join Date
    May 2010
    Posts
    2

    Post How to build PHP5-GTK2 on Ubuntu Lucid Lynx 10.04?

    Hello,

    I'm having trouble building the PHP GTK portion of the test suite.

    I have tried the 64bit .deb file, but it gives an out-of-date stamp error:

    Code:
    PHP Warning:  PHP Startup: php-gtk: Unable to initialize module
    Module compiled with module API=20060613
    PHP    compiled with module API=20090626
    These options need to match
     in Unknown on line 0
    So I figured that the previous .so file is out of date. So now when compiling myself, the ./buildconf runs, but on ./configure, I get this error:

    Code:
    creating main/php_gtk_ext.c
    ./configure: line 11641: LTOPTIONS_VERSION: command not found
    ./configure: line 11642: LTSUGAR_VERSION: command not found
    ./configure: line 11643: LTVERSION_VERSION: command not found
    ./configure: line 11644: LTOBSOLETE_VERSION: command not found
    checking for a sed that does not truncate output... (cached) /bin/sed
    ./configure: line 11719: syntax error near unexpected token `lt_decl_varnames,'
    ./configure: line 11719: `lt_if_append_uniq(lt_decl_varnames, SED, , ,

    Any help please?
    How did you guys get this running on 10.04?

    thanks

  2. #2
    Join Date
    May 2010
    Posts
    2

    Cool solved

    With the help of the fine folks at freenode's #php-gtk (mainly auroraeosrose), I found the answer:

    Code:
    sudo pecl install cairo-beta
    svn co http://svn.php.net/repository/gtk/php-gtk/trunk php-gtk
    cd php-gtk
    ./buildconf
    ./configure
    make
    make test
    sudo make install
    There you go!

  3. #3
    Join Date
    Nov 2008
    Location
    Madison, WI, USA
    Posts
    877

    Default

    This does indeed get the module to build/install correctly. Now I'm having fun getting the library paths set up so that PTS can actually see the library.

  4. #4
    Join Date
    May 2010
    Posts
    2

    Default No luck

    The suggested actions made 0% progress for that error for me. Perhaps there was a prior step which those items fixed? I still get the exact same error.

  5. #5
    Join Date
    May 2010
    Posts
    2

    Default

    Quote Originally Posted by jammerj2000 View Post
    The suggested actions made 0% progress for that error for me. Perhaps there was a prior step which those items fixed? I still get the exact same error.
    I used the following to get mine working along with your changes...

    http://wiki.birth-online.de/_export/...piling-php-gtk

  6. #6
    Join Date
    Dec 2007
    Location
    Merida
    Posts
    1,105

    Default

    This is what I followed to get php5-gtk2 going on Lucid:

    http://ubuntuforums.org/showthread.php?t=1471531

    I still get warnings when launching pts, but at least the gui works now.

    Code:
    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626/cairo.so' - /usr/lib/php5/20090626/cairo.so: cannot open shared object file: No such file or directory in Unknown on line 0
    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626/php_gtk2.so' - /usr/lib/php5/20090626/php_gtk2.so: cannot open shared object file: No such file or directory in Unknown on line 0

  7. #7
    Join Date
    Jun 2010
    Posts
    1

    Default

    Melcar, thanks for the post, i was successful with the above.

  8. #8
    Join Date
    Jun 2010
    Posts
    16

    Default

    thank you for all the tips and links. thanks to you guys i was able to get phoronix-test-suite gui running without any warnings.

Posting Permissions

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