Installing PHP

brutfood II

Registered
I'm installing PHP (v4.2.1) from Apple's site. I've already hit a snag I'm afraid.

I was following the Instructions:-

./configure --with-mysql --with-apxs

and it seems I have no C preprocessor.

configure: error: no acceptable cc found in $PATH

Ok, I'm going to try to find a C compiler, and install it - unless someone tells me I'm barking up the wrong tree. Perhaps soemone else has already istalled this successfully, and has some pointers.
 
PHP is already installed on MacOSX, but I' m not sure what version we're up to.

If you're installing a newer version, then I believe Apple uses gcc, and you only get that when you have the developer tools installed.
 
OS X ships with a non-complete set of features for their version of PHP.

As most people probably have already done, hop over to Marc Liyanage's site and grab his prepackaged installer which does wonders for beefing up PHP support.

Cheers.

Originally posted by brutfood II
I'm installing PHP (v4.2.1) from Apple's site. I've already hit a snag I'm afraid.

I was following the Instructions:-

./configure --with-mysql --with-apxs

and it seems I have no C preprocessor.

configure: error: no acceptable cc found in $PATH

Ok, I'm going to try to find a C compiler, and install it - unless someone tells me I'm barking up the wrong tree. Perhaps soemone else has already istalled this successfully, and has some pointers.
 
:rolleyes:
wow already up to 10.1.5 and have no devtool installed?

go join ADC and get the free devtools for Mac OSX
-----------------------------------
there is no substitution allowed on this part of the menu.
-----------------------------------

better enable root while you are at it...

I bet if you do screw the pooch you will always remember it.

BTW Marc's package is easy to install and you won't have to compile anything, but you won't learn unix either. if you need to concentrate only on php and sql development, then that is the recommended way.
 
I'd recommend using Marc's pre-compiled
module.

All of the submodules he's added really
save alot of time and pain.
 
Back
Top