Posts Tagged ‘snow leopard’

Installing PHP extensions on Mac OS X under xampp

Monday, May 31st, 2010

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:

  1. Download and extract the source
  2. Run phpize
  3. 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"
  4. make (and make install if required)
  5. 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!

Centos Virtualbox 64bit boot problem

Sunday, December 27th, 2009

It has been a while since my last blog post and plenty of things have happened in the mean time. The biggest change for me is that I have left Perth, Western Australia and moved to Toronto, Canada.

But now for the reason of this post. Before I moved to Canada, I had set up a virtual machine running Centos 5.3 x64 so I can do development on my Macbook pro, but when i booted up the virtualbox image, I received this error:

Memory for crash kernel (0×0 to 0×0) notwithin permissible range

Kernel alive
kernel direct mapping tables up to 100000000 @ 8000-d000

Now according to the VirtualBox manual, you have to enable IO APIC if you want to run a 64-bit guest. But once I had enabled IO APIC, it would still not boot up and just displayed a whole list of errors. To get the virtual machine running, I modified the boot parameters and added: “noapic” to the end of the kernel arguments (without quotes) and the virtual machine was able to boot up. After Centos was booted up, I edited “/boot/grub/menu.lst” and added the noapic parameter to the kernel arguments so I didnt have to add the parameter every time I turn the virtaul machine on.

I hope this will help anyway who is having the same problem, as I know it has helped at least one person :)