Then I tried following the UsingMacPortsQuickStart, but when I issued the command 'sudo port -v install php5 +apache2 +mysql5' I soon ran into problems:
Configuring extensions
checking whether to enable LIBXML support... yes
checking libxml2 install dir... /opt/local
checking for xml2-config path... /opt/local/bin/xml2-config
checking whether libxml build works... no
configure: error: build test failed. Please check the config.log for details.
Warning: the following items did not execute (for php5): com.apple.activate com.apple.configure com.apple.build com.apple.destroot com.apple.install
Error: Status 1 encountered during processing.
I googled on problems with libxml, but I seem to be the only one who installation fails on this. Perhaps foolishly, I tried to correct the problem by installing libxml, but to no avail:
sudo port install libxml2
Password:
---> Fetching libxml2
---> Verifying checksum(s) for libxml2
---> Extracting libxml2
---> Configuring libxml2
---> Building libxml2 with target all
---> Staging libxml2 into destroot
---> Installing libxml2 2.6.27_0
---> Activating libxml2 2.6.27_0
Error: Target com.apple.activate returned: Image error: Another version of libxml2 (2.6.23_0) is already active.
I have no idea what to do next, any help would be greatly appreciated.