我正在努力学习Symfony.所以我从symfony.com下载了安装程序.
我http_proxy/ https_proxy的定义,我的DNS了.除非,sudo curl -LsS https://symfony.com/installer -o /usr/local/bin/symfony用于下载安装程序的命令无法工作.
现在,我想创建一个新项目,所以在我的项目文件夹中输入symfony new project.如果我指定symfony new project 2.8或者相同的话symfony new project 3.0.
结果是一条错误消息:
Downloading Symfony...
[GuzzleHttp\Exception\RequestException]
Error creating resource: [message] fopen(http://symfony.com/download?v=Symfony_Standard_Vendors_latest.tgz): failed to open stream: Unable to find the socket transport "http" -
did you forget to enable it when you configured PHP?
[file] phar:///usr/local/bin/symfony/vendor/guzzlehttp/ringphp/src/Client/StreamHandler.php
[line] 406
[message] Undefined variable: http_response_header
[file] phar:///usr/local/bin/symfony/vendor/guzzlehttp/ringphp/src/Client/StreamHandler.php
[line] 407
[GuzzleHttp\Ring\Exception\RingException]
Error creating resource: [message] fopen(http://symfony.com/download?v=Symfony_Standard_Vendors_latest.tgz): failed …Run Code Online (Sandbox Code Playgroud)