After getting the MAMP stuff out of the way for Lion on my freshly installed VMware based virtual Mac it was time to upgrade my iMac (which I use as my main computer). It all went without any complications (also the blogosphere is quite silent on upgrading woes). First thing I noticed was that my local websites weren’t running and after some examination I found that none of my stuff was working. All the configuration and setup had been removed for MAMP and the mail-server.

So I started recompiling after solving problems with upgrading my version of Xcode. The installer asks you to stop iTunes but it forgets there is an iTunes Helper process still running and you have to quit it manually (e.g. using the Activity Monitor) before it finishes installing.

Everything went all right until I ran into compilation problems with PHP. Which was strange as everything went great on the fresh install of Lion. The error I encountered was:

/Users/richard/DIYMacServer/php-5.3.6/main/spprintf.c:186: error: static declaration of ‘strnlen’ follows non-static declaration
/usr/include/string.h:143: error: previous declaration of ‘strnlen’ was here
make: *** [main/spprintf.lo] Error 1

This is even a bug reported at PHP. To me it looked like there was some leftovers from the upgrade and I decided to wipe all the development stuff and install Xcode fresh. To do that you need to type in the following command:

sudo /Developer/Library/uninstall-devtools --mode=all

This will run for a while, when done re-install Xcode 4.1 and reboot. When your Mac is up and running again re-compile everything again and then it will work again. I’ve got my sites back in running mode again. Tomorrow I’ll start on getting my test mail server up and running again.

This proves again that a fresh install of the OS is much better then an upgrade to get rid of all the unwanted stuff.