The other day I installed xampp on a mac os x running snow leopard but I was having an issue installing any extra extensions like xdebug and apc. I found out it was because it was compiling the extensions in 64bit but xampp is compiled in 32bit and I did the following to fix the issue:
- Download and extract the source
- Run phpize
- Adding the following parameters to configure:
./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"
- make (and make install if required)
- done
If that doesnt work, try adding:
--with-php-config=/Applications/XAMPP/xamppfiles/bin/php-config-5.3.1
to the configure command.
I hope that will help some people out there, because it was driving me insane!