Announcement

Collapse
No announcement yet.

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

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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!

    Comment


    • #3
      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.

      Comment


      • #4
        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.

        Comment


        • #5
          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

          Comment


          • #6
            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

            Comment


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

              Comment


              • #8
                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.

                Comment

                Working...
                X