Xdebug on OSX Leopard with Entropy PHP5

Since I have been struggling with this for forever and finally found an answer, here’s an attempt to spread the wealth knowledge around.

Blog: Compiling & installing Xdebug for PHP 5.2.5 (Entropy.ch build) on OS X 10.5

Just to give the web crawlers some more info, the error message was:

PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/local/php5/lib/php/extensions/no-debug-non-zts-20060613/xdebug.so’ – (null) in Unknown on line 0

The solution is to compile it manually as a 64-bit application like so:

CFLAGS=’-arch x86_64′ ./configure –enable-xdebug

Hope this helps someone out there.

Related posts:

  1. DTrace with Entropy PHP on OSX Leopard
  2. Leopard (Gecko)
  3. Irssi: IRC goodness and Growl

3 thoughts on “Xdebug on OSX Leopard with Entropy PHP5

  1. Pingback: zerodeviation.net » DTrace with Entropy PHP on OSX Leopard

  2. Can’t seem to run phpize and I’m not sure what this error is telling me todo. I’ve tried running it from /usr/bin and a half dozen other places. Not sure what or where the module dir is.

    Cannot find config.m4. Make sure that you run ‘/usr/bin/phpize’ in the top level source directory of the module

  3. J, You should be able to run phpize inside the xdebug source directory, where you would also run ./configure and stuff from. It needs to be the phpize from the same PHP that you want to run xdebug under.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>