zerodeviation.net - musings of an engineer, developer, and picky theologian

Technology

March 21, 2009

Xdebug on OSX Leopard with Entropy PHP5

Tags: , , , ,

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.

Share this:
  • Digg
  • del.icio.us
  • Facebook
  • Twitter

Related posts:

  1. DTrace with Entropy PHP on OSX Leopard
  2. Leopard (Gecko)
  3. Updating tons of git repositories made easy
  4. gateway.2wire.net

  1. [...] Similar to Xdebug, DTrace also didn’t want to work and failed with the same error, so I tried the same trick, and it worked. [...]

    Pingback by zerodeviation.net » DTrace with Entropy PHP on OSX Leopard — March 21, 2009 @ 11:02 pm
  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

    Comment by J — April 9, 2009 @ 4:37 pm
  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.

    Comment by Christoph — April 9, 2009 @ 4:45 pm

Leave a comment

RSS feed for comments on this post. TrackBack URL