Christian Grobmeier wrote:
wanted to install xdebug on OSX 10.4 and 10.5. It fails with syntax
errors. I am assuming it happens cause i use MAMP :-) Can you tell
what enviroment are you using? Selfcompiled PHP i guess?
You need to compile Xdebug on Mac (binaries are only available for
Windows) and in order to do that you need to have necessary tools and
header files installed.
The basic requirements for compiling PHP extensions is the same as for
PHP itself (see: http://www.php.net/anoncvs.php)
I prefer MacPorts [1] as my package manager on OS X since that's the
easiest way to get all needed tools and header files. There's too many
tutorials on this [2] so I won't go into details. But at least you will
have to do this:
$ sudo port install php5 +apache2 +mysql5 +pear
$ sudo port install php5-devel
Some of the basic tools like gcc etc is installed with Xcode, but most
of what you need is also available in MacPorts.
Knut
[1] http://www.macports.org
[2] http://2tbsp.com/content/install_apache_2_and_php_5_macports