At 2AM I finally was able to do my sudo make install and everything was right with the world again. :)
At 2AM I finally was able to do my sudo make install and everything was right with the world again. :)
So to add a bundled library to the mac's PHP, you download the PHP sources (most of the time, not even the version has to match) and you extract them.
Then you cd into ext/<name of extension> and type phpize, followed by configure and make install.
Now you can enable the freshly built and correctly installed extension in your php.ini.
No need to replace the system PHP with something home-grown.
You can run Lion virtualized under OS X, if you are so inclined, but I don't see any advantage to doing so.
I like the isolation of environments so much that even if I were to switch to Linux as my day to day OS, I would still develop every project in a VM.