PHP-GTK on OS X
From Superk
After much grief and aggravation, I finally got PHP-GTK to work on OS X! Thanks to the PHP-GTK mailing list for information that led me to solving this problem. Also thanks to the person that compiled the phpgtk.so binary so I didn\'t have to.
1. Compile a fresh version of PHP
php-<ver>$ ./configure --bindir=/usr/local/bin ... php-<ver>$ make ... php-<ver>$ sudo make install
2. Download the PHP-GTK extensions from this location (10.2.x (Jaguar) files work fine in 10.3.x (Panther)) & copy them to the extensions directory of PHP
~$ sudo mkdir /usr/local/lib/php/extensions ~$ sudo mkdir /usr/local/lib/php/no-debug-non-zts-20020429 ~$ sudo cp /path/to/ext_download/*.so /usr/local/lib/php/extensions/no-debug-non-zts-20020429/
3. Install additional packages required using Fink
- dlcompat-shlibs
- imlib & imlib-shlibs
- libxml & libxml-shlibs
- libxml2 & libxml2-shlibs
- gtk+, gtk+-data, gtk+-shlibs
- gtk+2, gtk+2-data, gtk+2-shlibs
- libglade & libglade-shlibs
- libglade2 & libglade2-shlibs
4. Force OS X to use the newly compiled PHP by \"faking it\":
~$ sudo mv /usr/bin/php /usr/bin/php_old ~$ sudo ln -s /usr/local/bin/php /usr/bin/php
5. Run all your PHP-GTK apps through the OS X X11 desktop.
