Follow us on...
Follow us on Twitter Follow us on Facebook
Register
Results 1 to 5 of 5

Thread: Installing PHP

  1. #1
    brutfood II is offline Registered User
    Join Date
    Jun 2002
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Installing PHP

    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.

  2. #2
    Captain Code's Avatar
    Captain Code is offline Moderator
    Join Date
    Aug 2001
    Location
    Ontario, Canada
    Posts
    3,120
    Thanks
    0
    Thanked 17 Times in 2 Posts
    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.
    MacBook Pro 2.16GHz Core2Duo 3GB RAM, G4 1.4GHz OSX Tiger 1.25GB RAM, Dual 2GHz G5 OSX Tiger 2GB RAM (freakin shweet)
    Athlon 64 Windoze XP for school work (programming) 1GB RAM
    dferns@macosx.com

  3. #3
    legacyb4 is offline Registered User
    Join Date
    Sep 2001
    Location
    Tokyo, Japan
    Posts
    245
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Installing PHP

    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.
    Macbook (Black) C2D/120GB/2GB | G5/1.6 250GBx2/1.25GB
    Free Mobile Phone Ringtone, Application, & Screensaver Uploader

  4. #4
    jimr is offline McInstigator
    Join Date
    Aug 2001
    Location
    Tokyo
    Posts
    191
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question finding a C compiler...


    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.
    Mmmmmm.....
    Toast!!!

  5. #5
    howardm4 is offline Registered User
    Join Date
    Jun 2001
    Posts
    204
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I'd recommend using Marc's pre-compiled
    module.

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

 

 

Similar Threads

  1. [HOWTO] - Setup PHP & MySQL
    By yoshi in forum HOWTO & FAQs
    Replies: 225
    Last Post: January 2nd, 2005, 12:39 AM
  2. Enabling PHP in 10.2 Client
    By sixthring in forum Mac OS X System & Mac Software
    Replies: 2
    Last Post: October 28th, 2002, 12:48 PM
  3. PHP + MySQL running but not ZLIB
    By lashampoo in forum Mac OS X System & Mac Software
    Replies: 2
    Last Post: October 8th, 2001, 04:58 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •