読者です 読者をやめる 読者になる 読者になる

Paradigm Shift Design

ISHITOYA Kentaro's blog.

php56-httpのインストール

I've run into problem installing php56-http with command

brew install php56-http
==> Installing php56-http
==> Downloading http://pecl.php.net/get/pecl_http-2.1.2.tgz
Already downloaded: /Library/Caches/Homebrew/php56-http-2.1.2.tgz
==> PHP_AUTOCONF="/usr/local/opt/autoconf/bin/autoconf" PHP_AUTOHEADER="/usr/loc
==> mkdir -p ext/raphf
==> mkdir -p ext/propro
==> ./configure --prefix=/usr/local/Cellar/php56-http/2.1.2 --with-php-config=/u
==> make
                        case CURLSSLBACKEND_QSOSSL:
                             ^
2 errors generated.
make: *** [php_http_client_curl.lo] Error 1
make: *** Waiting for unfinished jobs....

After googling, I found Cannot install php56-http · Issue #1429 · Homebrew/homebrew-php · GitHub

Open formula with command,

brew edit php56-http

Edit url and sha1.

url 'http://pecl.php.net/get/pecl_http-2.1.4.tgz'
sha1 'bcd2b925207ba06aa31608bd0b20008093caa61f'

And then run install command again.

brew install php56-http