Women in Technology

Hear us Roar

  PHP 4.3 and Mac OS X
Subject:   adding directives in the future
Date:   2004-01-27 07:40:42
From:   nicki
This is a newbie question- I have everything working but just want php to look at curl. Does this mean I have to go through this entire process to add that. I mean, everytime I want php to see a new thing, I have to start from scratch like this? I was hoping there was a way to just run the configure command alone or add a line to php.in like you can do for windows. Although maybe the mac doesn't come with the build, just everything already working.
Full Threads Oldest First

Showing messages 1 through 1 of 1.

  • Adam Trachtenberg photo adding directives in the future
    2004-01-29 18:04:06  Adam Trachtenberg | O'Reilly Author [View]

    If you've already built PHP on Mac OS X (instead of using Apple's built-in version) and didn't configure it to include cURL, you need to rebuild PHP. However, it shouldn't be too bad, there's a file named "config.cache" that saves your old configuration. I'd do:

    % ./config.nice --enable-curl
    % make
    % sudo make install

    And that should be everything you need. If you run into weird compile errors, do:

    % make clean

    And repeat the whole process. That'll clear out the old junk lying around from before.

    Also, if you want to use the curl installed using fink instead of Apple's, do:

    % ./config.nice --with-curl=/sw

    If you've never built PHP before, you do need to go through the entire process. There's no special trick to just add in one module, like cURL.