Php with curl from homebrew

Aus Laemmi´s Wiki
Zur Navigation springen Zur Suche springen

update SSL:

brew reinstall curl --with-libssh2 --with-openssl

then edit php:

brew edit php

line 20, make it always depend on curl:

depends_on "curl"

scroll down to line ~145

args << "--with-curl=#{Formula["curl"].opt_prefix}"

make sure we are always using the homebrew curl

now build form source:

brew reinstall --build-from-source php