Whether I install via homebrew:
brew install homebrew/php/php70-xdebug
or compile from source located at http://xdebug.org using either just ./configure
or the following:
./configure --enable-xdebug CC="gcc -arch i386" CXX="g++ -arch i386"
make
I still receive the following when running php7 that is bundled with Acquia DevDesktop:
Failed loading /Applications/DevDesktop/php7_0/ext/xdebug.so: dlopen(/Applications/DevDesktop/php7_0/ext/xdebug.so, 9): no suitable image found. Did find:
/Applications/DevDesktop/php7_0/ext/xdebug.so: mach-o, but wrong architecture
Things I have confirmed:
- I am copying the xdebug.so into the proper directory either from /usr/local/Cellar/php70-xdebug/2.4.0 (in the case of the homebrew install)
- or from the newly compiled one from xdebug-2.4.0/module
which php
returns /Applications/DevDesktop/php7_0/bin/phpphp -i
shows the correct .ini file (/Applications/DevDesktop/php7_0/bin/php.ini) and no others- opcache.so is turned off
zend_extension="/Applications/DevDesktop/php7_0/ext/xdebug.so"
is in the php.ini
The full message php --version
returns is:
$ php --version
Failed loading /Applications/DevDesktop/php7_0/ext/xdebug.so: dlopen(/Applications/DevDesktop/php7_0/ext/xdebug.so, 9): no suitable image found. Did find:
/Applications/DevDesktop/php7_0/ext/xdebug.so: mach-o, but wrong architecture
PHP 7.0.4 (cli) (built: Mar 18 2016 02:12:27) ( ZTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
The OS is a brand-new install of Mac OS 10.11.5 on a MacBook Air.
Does anyone know why is it complaining about the wrong architecture?