I am doing some Web dev and I could do with PHP installing on to the webserver on my iMac.
But I run in to problems whatever way I try to install it.
first I tried
Mark Liyanage's pre made installer that uses the OSX installer app, this gets to the end then fails (I suspect it's because it's built for PPC not intel).
I then try
this method from Apples ADC site. I download the PHP source and get to the
./configure --with-apxs part, this fails with the following message in the terminal
checking for C compiler default output file name... configure: error: C compiler cannot create executables
. Maybe the source code is a 'windows' version?
So then I find
Get DarwinPorts which lists a Darwin version of PHP. First you have to install an app to run there installers, there is no binary for Intel Mac's so yo have to get the source and build your own. I get the source extract it and again get to the
./configure && make && sudo make install bit, again it fails, the terminal has a bit more to say this time
checking build system type... i686-apple-darwin8.5.1
checking host system type... i686-apple-darwin8.5.1
checking target system type... i686-apple-darwin8.5.1
checking for gcc... gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.
and I can't find config.log to see what info that contains.
I have run a .PHP file with
in it but it just gets displayed as text in Safari, even though 'Personal Web Sharing' is on in the control panel, so there is no version of PHP currently running.