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?
php-gtk2 is not supported in php 5.3. The phpgtk homepage talks about how the next version will support version 5.3. On the down side, that post was posted almost two years ago. The latest post from 6 months ago says that it is still slowly being worked on.
I've posted instruction here on how you can set up gtk on php 5.2.17 using macports
What version do you have of :
Maybe you should try this installer.
EDIT : installer link changed