Thursday, January 27, 2011

Installing PHP-GTK with PHP 5.3 on OS X

I'm having trouble getting php-gtk installed with php 5.3 on os x. I'm currently using macports to do it and when I try to install php-gtk, it spews 'duplicate static' errors:

Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_php_php5-gtk/work/php-gtk-2.0.1" && /usr/bin/make -j2 all " returned error 2
Command output: ext/gtk+/gen_pango.c:2951: error: duplicate 'static'
ext/gtk+/gen_pango.c:2957: error: duplicate 'static'
ext/gtk+/gen_pango.c:3097: error: duplicate 'static'
ext/gtk+/gen_pango.c:3103: error: duplicate 'static'

Is there a way to coerce it into building, or an alternative way to install it?

  • What version do you have of :

    • PHP
    • Mac OS X
    • MacPorts

    Maybe you should try this installer.

    EDIT : installer link changed

    Shabbyrobe : Will the installer, which appears to install php 5.2.5 according to the screenshots in the link you provided, interfere with my current macports installation of php 5.3?
    Shabbyrobe : Actually, the [installer link](http://www.kix.in/php-gtk2/PHP-GTK-2.0.0.dmg) doesn't appear to work.
    Studer : Link changed. The installer doesn't install PHP, it only installs the bindings for GTK. I download it and it installs everything in `/usr/local/php-gtk`, so it shouldn't interfere with MacPorts install which is in `/opt`
    Shabbyrobe : I have PHP 5.3.2 installed through macports 1.8.2 running on OS X 10.6.2
    Studer : Try updating MacPorts to its latest version : 1.9.1 (at the time of writing)
    From Studer

0 comments:

Post a Comment