That happened to me a long time ago... Back when I had the first version of MacOS X Server. I remove all PB files and reinstalled the dev tools. Make sure you have the latest updates for both OS X and the dev tools.
Have you logged in as root a change permissions in places other than your home directory. If so, that can screw things up pretty bad. Good luck.