【发布时间】:2016-01-21 20:33:01
【问题描述】:
我在代理后面有带有 Ubuntu 14.04 的 VirtualBox。我已经安装了 Apache2、PHP、MySQL 和 Composer。我做了谷歌,设置了系统范围的代理,apt-get 和 git 的代理。并据此:
deralsem@DerVirtualBox:/var/www/laravel$ composer diag
Checking composer.json: OK
Checking platform settings: OK
Checking git settings: OK
Checking http connectivity to packagist: OK
Checking https connectivity to packagist: OK
Checking **HTTP proxy**: OK
Checking **HTTP proxy support for request_fulluri**: OK
Checking **HTTPS proxy support for request_fulluri**: OK
Checking github.com rate limit: OK
Checking disk free space: OK
Checking composer version: OK
Composer 设置为使用代理。但是,试试这个:
$ cd /var/www
$ git clone https://github.com/laravel/laravel.git
Navigate to Laravel code directory and use composer to install all dependencies required for Laravel framework.
$ cd /var/www/laravel
$ sudo composer install
我有这个:
Loading composer repositories with package information
[Composer\Downloader\TransportException]
The "https://packagist.org/packages.json" file could not be downloaded: php_network_getaddresses: getaddrinfo failed: No address associated with hostname
failed to open stream: php_network_getaddresses: getaddrinfo failed: No address associated with hostname
install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-plugins] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--ignore-platform-reqs] [packages1] ... [packagesN]
任何建议表示赞赏。
【问题讨论】:
标签: laravel proxy composer-php