This repository has been archived by the owner. It is now read-only.

Cannot install php56-http #1429

Closed
karolhor opened this Issue Nov 9, 2014 · 4 comments

Comments

Projects
None yet
4 participants
@karolhor

karolhor commented Nov 9, 2014

I've got compilation errors when trying to install php56-http

$ brew install php56-http
==> Installing php56-http from homebrew/homebrew-php
==> 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=/Volumes/DANE/homebrew/Cellar/php56-http/2.1.2 --with-p
==> make
                        case CURLSSLBACKEND_QSOSSL:
                             ^
2 errors generated.
make: *** [php_http_client_curl.lo] Error 1
make: *** Waiting for unfinished jobs....

READ THIS: https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/Troubleshooting.md#troubleshooting
If reporting this issue please do so at (not Homebrew/homebrew):
  https://github.com/homebrew/homebrew-php/issues

Parameter Value
OS X Version: 10.10.1
Homebrew Version: Homebrew 0.9.5
PHP Version in use: homebrew-php stable
Xcode Version: 5.1.1
Output of gcc -v: Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
Target: x86_64-apple-darwin14.0.0
Thread model: posix
Output of php -v: PHP 5.6.2 (cli) (built: Nov 9 2014 13:35:09)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2014 Zend Technologies
with Xdebug v2.2.5, Copyright (c) 2002-2014, by Derick Rethans
Output of brew install -v path/to/homebrew-php/the-formula-you-want-to-test.rb --with-your --opts-here within a gist: https://gist.github.com/karolhor/965b7450078201d22b0e
Output of brew doctor within a gist: https://gist.github.com/karolhor/854249aff06535312202
@freen

This comment has been minimized.

Show comment
Hide comment
@freen

freen Nov 15, 2014

I'm having the same error for php54-http and php53-http.

The compilation error matches following PHP bug scenario, closed a little over a week ago:
https://bugs.php.net/bug.php?id=68353

My php54-http make log fails this way:
https://gist.github.com/freen/a7e3bb9099eece25d554

Parameter Value
OS X Version: 10.9.5
Homebrew Version: 0.9.5
PHP Version in use: 5.4
Xcode Version: 6.1
Output of gcc -v: Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 6.0 (clang-600.0.54) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin13.4.0
Thread model: posix
Output of php -v: Warning: PHP Startup: Unable to load dynamic library '/usr/local/Cellar/php54-memcache/2.2.7/memcache.so' - dlopen(/usr/local/Cellar/php54-memcache/2.2.7/memcache.so, 9): image not found in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library '/usr/local/Cellar/php54-http/2.1.0/http.so' - dlopen(/usr/local/Cellar/php54-http/2.1.0/http.so, 9): image not found in Unknown on line 0
PHP 5.4.33 (cli) (built: Nov 14 2014 18:17:15)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies
with Xdebug v2.2.5, Copyright (c) 2002-2014, by Derick Rethans
Output of brew install -v path/to/homebrew-php/php54-http.rb https://gist.github.com/freen/c88d2da05c10cec6b33e
Output of brew doctor within a gist Your system is ready to brew

freen commented Nov 15, 2014

I'm having the same error for php54-http and php53-http.

The compilation error matches following PHP bug scenario, closed a little over a week ago:
https://bugs.php.net/bug.php?id=68353

My php54-http make log fails this way:
https://gist.github.com/freen/a7e3bb9099eece25d554

Parameter Value
OS X Version: 10.9.5
Homebrew Version: 0.9.5
PHP Version in use: 5.4
Xcode Version: 6.1
Output of gcc -v: Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 6.0 (clang-600.0.54) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin13.4.0
Thread model: posix
Output of php -v: Warning: PHP Startup: Unable to load dynamic library '/usr/local/Cellar/php54-memcache/2.2.7/memcache.so' - dlopen(/usr/local/Cellar/php54-memcache/2.2.7/memcache.so, 9): image not found in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library '/usr/local/Cellar/php54-http/2.1.0/http.so' - dlopen(/usr/local/Cellar/php54-http/2.1.0/http.so, 9): image not found in Unknown on line 0
PHP 5.4.33 (cli) (built: Nov 14 2014 18:17:15)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies
with Xdebug v2.2.5, Copyright (c) 2002-2014, by Derick Rethans
Output of brew install -v path/to/homebrew-php/php54-http.rb https://gist.github.com/freen/c88d2da05c10cec6b33e
Output of brew doctor within a gist Your system is ready to brew
@mcdado

This comment has been minimized.

Show comment
Hide comment
@mcdado

mcdado Nov 17, 2014

Contributor

It has been fixed in a new release of pecl's http package. I'm preparing a PR, if you need it you can edit the formulas with these lines:

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

mcdado commented Nov 17, 2014

It has been fixed in a new release of pecl's http package. I'm preparing a PR, if you need it you can edit the formulas with these lines:

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

This comment has been minimized.

Show comment
Hide comment
@freen

freen Nov 19, 2014

Thanks a lot @mcdado --- that did the trick for now!

freen commented Nov 19, 2014

Thanks a lot @mcdado --- that did the trick for now!

@mcdado

This comment has been minimized.

Show comment
Hide comment
@mcdado

mcdado Dec 1, 2014

Contributor

Well, now that #1441 is merged and closed, you don't need that trick anymore… and if you have problems doing brew update, you can just cd /usr/local/Library/Taps/homebrew/homebrew-php/ and reset the various modified files, like git checkout Formula/php56-http.rb. And next time, instead of that trick of editing the formula, you can do something like brew install php56-http --HEAD (if the formula allows, in this case it does). When the release is fixed you should brew uninstall php56-http and brew install php56-http

Contributor

mcdado commented Dec 1, 2014

Well, now that #1441 is merged and closed, you don't need that trick anymore… and if you have problems doing brew update, you can just cd /usr/local/Library/Taps/homebrew/homebrew-php/ and reset the various modified files, like git checkout Formula/php56-http.rb. And next time, instead of that trick of editing the formula, you can do something like brew install php56-http --HEAD (if the formula allows, in this case it does). When the release is fixed you should brew uninstall php56-http and brew install php56-http

@alanthing alanthing closed this Feb 24, 2015

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.