Problems with global installation of lavarel by composer

Source: Internet
Author: User
Tags autoloader
The system is centos6.5 {code...}. the download process of symfonyprocess always fails, and no reason can be found ...... The system is centos6.5.

[root@memda www]# composer global require "laravel/installer=~1.1"Changed current directory to /root/.composer./composer.json has been createdLoading composer repositories with package informationUpdating dependencies (including require-dev)  - Installing symfony/process (v3.1.3)    Downloading: Failed           Downloading: Failed           Downloading: Failed           Failed to download symfony/process from dist: The "https://api.github.com/repos/symfony/process/zipball/04c2dfaae4ec56a5c677b0c69fac34637d815758" file could not be downloaded: failed to open stream: No route to host    Now trying to download from source  - Installing symfony/process (v3.1.3)    Cloning 04c2dfaae4ec56a5c677b0c69fac34637d815758Installation failed, deleting ./composer.json.The disk hosting /root/.composer is full, this may be the cause of the following exception                                                                                                                                           [RuntimeException]                                                                                                                       Failed to clone https://github.com/symfony/process.git via https, ssh protocols, aborting.                                               - https://github.com/symfony/process.git                                                                                                   error: Failed connect to github.com:443; Operation now in progress while accessing https://github.com/symfony/process.git/info/refs                                                                                                                                               fatal: HTTP request failed                                                                                                             - git@github.com:symfony/process.git                                                                                                       ssh: connect to host github.com port 22: No route to host                                                                                fatal: The remote end hung up unexpectedly                                                                                                                                                                                                                                    require [--dev] [--prefer-source] [--prefer-dist] [--no-plugins] [--no-progress] [--no-update] [--update-no-dev] [--update-with-dependencies] [--ignore-platform-reqs] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--] [
  
   ]...
  

There will always be a process of symfony/process downloading failure, and no reason can be found, crying ......

Reply content:

The system is centos6.5.

[root@memda www]# composer global require "laravel/installer=~1.1"Changed current directory to /root/.composer./composer.json has been createdLoading composer repositories with package informationUpdating dependencies (including require-dev)  - Installing symfony/process (v3.1.3)    Downloading: Failed           Downloading: Failed           Downloading: Failed           Failed to download symfony/process from dist: The "https://api.github.com/repos/symfony/process/zipball/04c2dfaae4ec56a5c677b0c69fac34637d815758" file could not be downloaded: failed to open stream: No route to host    Now trying to download from source  - Installing symfony/process (v3.1.3)    Cloning 04c2dfaae4ec56a5c677b0c69fac34637d815758Installation failed, deleting ./composer.json.The disk hosting /root/.composer is full, this may be the cause of the following exception                                                                                                                                           [RuntimeException]                                                                                                                       Failed to clone https://github.com/symfony/process.git via https, ssh protocols, aborting.                                               - https://github.com/symfony/process.git                                                                                                   error: Failed connect to github.com:443; Operation now in progress while accessing https://github.com/symfony/process.git/info/refs                                                                                                                                               fatal: HTTP request failed                                                                                                             - git@github.com:symfony/process.git                                                                                                       ssh: connect to host github.com port 22: No route to host                                                                                fatal: The remote end hung up unexpectedly                                                                                                                                                                                                                                    require [--dev] [--prefer-source] [--prefer-dist] [--no-plugins] [--no-progress] [--no-update] [--update-no-dev] [--update-with-dependencies] [--ignore-platform-reqs] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--] [
  
   ]...
  

There will always be a process of symfony/process downloading failure, and no reason can be found, crying ......

If you forget to modify the global configuration of composer, the image still needs to use the domestic image,
Composer config-g repo. packagist composer https://packagist.phpcomposer...
Stupid!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.