Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

install Error #1023

Closed
luohengyi opened this issue Jun 16, 2019 · 5 comments · Fixed by #1038
Closed

install Error #1023

luohengyi opened this issue Jun 16, 2019 · 5 comments · Fixed by #1038
Assignees

Comments

@luohengyi
Copy link

hpbrew install 5.5.38 +default
===> phpbrew will now build 5.5.38
===> Loading and resolving variants...
Checking distribution checksum...
Checksum mismatch: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 != 473c81ebb2e48ca468caee031762266651843d7227c18a824add9b07b9393e38
Re-Downloading...
Downloading http://www.php.net/get/php-5.5.38.tar.bz2/from/this/mirror via curl extension
[==================================================================] 185.00/185.00B 100%
Redirecting to https://www.php.net/get/php-5.5.38.tar.bz2/from/this/mirror
CurlKit\CurlException: at [The Location header can not be found: HTTP/2 302
server: myracloud
date: Sun, 16 Jun 2019 04:05:58 GMT
content-type: text/html; charset=utf-8
content-language: en
x-frame-options: SAMEORIGIN
set-cookie: COUNTRY=NA%2C110.188.95.243; expires=Sun, 23-Jun-2019 04:05:58 GMT; Max-Age=604800; path=/; domain=.php.net
x-php-load: 0.07, 0.05, 0.06
status: 302 Found
location: https://www.php.net/distributions/php-5.5.38.tar.bz2
expires: Sun, 16 Jun 2019 04:05:58 GMT
cache-control: max-age=0]
Trace:

0) CurlKit\CurlDownloader->request('https://www.php.net/get/php-5.5.38.tar.bz2/from/this/mirror', [], ['https://www.php.net/get/php-5.5.38.tar.bz2/from/this/mirror'])
1) CurlKit\CurlDownloader->request('http://www.php.net/get/php-5.5.38.tar.bz2/from/this/mirror')
2) PhpBrew\Downloader\PhpCurlDownloader->process('http://www.php.net/get/php-5.5.38.tar.bz2/from/this/mirror', '/Users/luohengyi/.phpbrew/distfiles/php-5.5.38.tar.bz2')
3) PhpBrew\Downloader\BaseDownloader->download('http://www.php.net/get/php-5.5.38.tar.bz2/from/this/mirror', '/Users/luohengyi/.phpbrew/distfiles/php-5.5.38.tar.bz2')
4) PhpBrew\Tasks\DownloadTask->download('http://www.php.net/get/php-5.5.38.tar.bz2/from/this/mirror', '/Users/luohengyi/.phpbrew/distfiles', 'sha256', '473c81ebb2e48ca468caee031762266651843d7227c18a824add9b07b9393e38')
5) PhpBrew\Command\InstallCommand->execute('5.5.38', '+default')
6) call_user_func_array([PhpBrew\Command\InstallCommand, 'execute'], ['5.5.38', '+default'])
7) CLIFramework\CommandBase->executeWrapper(['5.5.38', '+default'])
8) CLIFramework\Application->run(['/usr/local/bin/phpbrew', 'install', '5.5.38', '+default'])
9) PhpBrew\Console->runWithTry(['/usr/local/bin/phpbrew', 'install', '5.5.38', '+default'])
10) require('phar:///usr/local/bin/phpbrew/scripts/phpbrew-emb.php')
@fredckl
Copy link

fredckl commented Aug 20, 2019

I have de same issue.
Help

@luohengyi
Copy link
Author

#1011
Here's the answer you need

@njt1982
Copy link

njt1982 commented Sep 10, 2019

Looks like you need to force-define the mirror?

phpbrew install --mirror=https://www.php.net 7.2.22 (from #1011 that @luohengyi posted).

@morozov
Copy link
Contributor

morozov commented Nov 28, 2019

The --mirror flag is no longer supported by PHPBrew (#1050). The bug itself seems to be caused by c9s/CurlKit#4 (comment) and should be filed/escalated upstream.

@morozov
Copy link
Contributor

morozov commented Nov 28, 2019

In the meanwhile, you can try using an alternative downloader using the --downloader options. The available downloaders are:

const METHOD_PHP_CURL = 'php_curl';
const METHOD_PHP_STREAM = 'php_stream';
const METHOD_WGET = 'wget';
const METHOD_CURL = 'curl';

For instance, phpbrew install --downloader=php_stream 7.3.11 +neutral.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants