PHP 5.3 und xDebug unter Mac OS X 10.6

Ich habe gerade versucht unter PHP 5.3 mal schnell xDebug zu installieren. Am einfachsten natürlich per PECL. Allerdings kam hier folgende Meldung bei PHP:

Failed loading /Applications/XAMPP/xamppfiles/lib/php/php-5.3.1/extensions/
no-debug-non-zts-20090626/xdebug.so:Â  dlopen(/Applications/XAMPP/xamppfiles/
lib/php/php-5.3.1/extensions/no-debug-non-zts-20090626/xdebug.so, 9):
no suitable image found.  Did find:
/Applications/XAMPP/xamppfiles/lib/php/php-5.3.1/extensions/
no-debug-non-zts-20090626/xdebug.so: mach-o, but wrong architecture

Um xDebug unter OS X 10.6 zu Laufen zu bekommen, muss man folgende Schritte durchführen:

  1. Sourcen herunterladen und enpacken (http://xdebug.org)
  2. In das entpackte Verzeichnis wechseln und folgenden configure-Befehl ausführen:
    ./configure MACOSX_DEPLOYMENT_TARGET=10.6 CFLAGS="-arch i386 -g -Os -pipe \\
     -no-cpp-precomp" CCFLAGS="-arch i386 -g -Os -pipe" CXXFLAGS="-arch i386 -g \\
    -Os -pipe" LDFLAGS="-arch i386 -bind_at_load"
  3. Dann noch ein make machen.
  4. Anschließend ddie .so-Datei unter modules an den gewünschten Platz kopieren.
  5. xDebug in der php.ini als zend_extension eintragen.

via Some notes on Zend Server CE for Mac OS X – Rob Allen’s DevNotes.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*