curl不适用于phpbrew,如果我安装的是php版本或者php扩展或者其他使用CURL的东西,脚本就无法完成。
有什么想法吗?
phpbrew ext install xdebug
Warning: Some extension won't be able to be built with php7. If the extension
supports php7 in another branch or new major version, you will need to specify
the branch name or version name explicitly.
For example, to install memcached extension for php7, use:
phpbrew ext install github:php-memcached-dev/php-memcached php7 -- --disable-memcached-sasl
CurlKit\CurlException: (28) Resolving timed out after 10524 milliseconds
Trace:
0) CurlKit\CurlDownloader->request('https://pecl.php.net/rest/r/xdebug/stable.txt')
1) PhpBrew\Extension\Provider\PeclProvider->getPackageXml('xdebug', 'stable')
2) PhpBrew\Extension\Provider\PeclProvider->buildPackageDownloadUrl('stable')
3) PhpBrew\Extension\ExtensionDownloader->download(PhpBrew\Extension\Provider\PeclProvider, 'stable')
4) PhpBrew\Command\ExtensionCommand\InstallCommand->execute('xdebug')
5) call_user_func_array([PhpBrew\Command\ExtensionCommand\InstallCommand, 'execute'], ['xdebug'])
6) CLIFramework\CommandBase->executeWrapper(['xdebug'])
7) CLIFramework\Application->run(['/usr/local/bin/phpbrew', 'ext', 'install', 'xdebug'])
8) PhpBrew\Console->runWithTry(['/usr/local/bin/phpbrew', 'ext', 'install', 'xdebug'])
9) require('phar:///usr/local/bin/phpbrew/scripts/phpbrew-emb.php')发布于 2016-06-29 19:12:19
当然,同意有关网络问题的评论,但也请看一些技巧的文章- https://github.com/phpbrew/phpbrew/wiki/PHP7
https://stackoverflow.com/questions/37070657
复制相似问题