Tuesday, April 07, 2009

We'd only have to call it 'DAMP'

Since, in a fit of exuberant irony, my crash reporter clone is causing more crashes than it reports, I thought I'd give it a rest for a little while and instead look at getting some untested applications running instead. I thought that maybe having a working web app stack might be of some use to someone, so decided to look at the Apache-MySQL-PHP trio.



Binary roots are available on Mac OS Forge for Apache and MySQL, which I should have taken as a warning. They both installed without too much trouble: Apache needed expat, which was available but uninstalled, and MySQL just needed a little post-installation configuration, creating the default database and so on. So far, so good.



There was also a binary root of PHP4 available, but I thought, no, we'll go for the almost latest PHP5 in the apache_mod_php project. Of course, the absence of a binary root means that it wouldn't build for the boys at Apple, but then they don't usually try that hard.



Four hours later and I'm about ready to smash something. Trying to coax darwinbuild into building something it doesn't want to is one of the most frustrating experiences its ever been my misfortune to undertake. A custom build .plist got me over one set of problems — it was trying to build all four OS X architectures and threw a fit when it hit a library which had been stripped down to just i386 — but right now it's refusing to see a set of header files which are absolutely definitely there, and I have no idea what to try next, short of hacking the source code about, which I really didn't want to have to do.



Tomorrow I'll waste some more time seeing if I can get a tool chain running in Darwin itself. We then may be able to get non-Apple source packages to compile natively... although I'm not going to hold my breath.



I honestly can't wait until Snow Leopard comes out and we have to start again from scratch.


No comments: