for those, who are installing Apache, PHP, MySQL and the other things using macports, I got a good news.
I installed Apache2, PHP, MySQL and other using MacPorts on my Mac, just to have a local development system for my fav CMS (TYPO3). But it wasn’t as easy as I expected. The image manipulation function from TYPO3 uses imagettftext(). This function needs freetype to be installed.
I thought, it would be not so hard to install freetype from MacPorts. But I was wrong. After installing it, there was no error or warning. But while setting up TYPO3, there’s a step, which only shows white pages. No PHP error or warning. Nothing!
It took quite a while to find out that it was the imagettftext function that run amok. But why? in Apache error log there was lots of this line:
The process has forked and you cannot use this CoreFoundation functionality safely. You MUST exec().
Break on __THE_PROCESS_HAS_FORKED_AND_YOU_CANNOT_USE_THIS_COREFOUNDATION_FUNCTIONALITY___YOU_MUST_EXEC__() to debug.
My first idea was: ask google. But google didn’t help me much. So I had to live without imagettftext function. Yesterday I found this. I did every step described and it works. there’s something wrong in the way freetype is configured and compiled. But it works now. Thanks to the guy, who posted it..