"composer install" failed for install drush 7.x in CentOS 6.5
Hi guys,
I have tried to install drush 7 in CentOS 6.5 as commands below:
curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer
ln -s /usr/local/bin/composer /usr/bin/composer
git clone https://github.com/drush-ops/drush.git /usr/local/src/drush
cd /usr/local/src/drush
git checkout master #or whatever version you want.
ln -s /usr/local/src/drush/drush /usr/bin/drush
composer install
drush --version
But when I input "composer install",then press Enter button, I get some errors:
[root@localhost drush]# composer install
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
- Installing pear/console_table (1.2.1)
Downloading: 100%
Downloading: 100%
Downloading: 100%
Failed to download pear/console_table from dist: The "https://api.github.com
/repos/RobLoach/Console_Table/zipball/10d89fbbe533351dcfe5dc1e84de25d9a8395950"
file could not be downloaded: php_network_getaddresses: getaddrinfo failed: Temp
orary failure in name resolution
failed to open stream: php_network_getaddresses: getaddrinfo failed: Temporary f
ailure in name resolution
Now trying to download from source
- Installing pear/console_table (1.2.1)
Cloning 10d89fbbe533351dcfe5dc1e84de25d9a8395950
[RuntimeException]
Failed to clone git@github.com:RobLoach/Console_Table.git via git, https, s
sh protocols, aborting.
- git://github.com/RobLoach/Console_Table.git
github.com[0: 192.30.252.129]: errno=Connection timed out
fatal: unable to connect a socket (Connection timed out)
- https://github.com/RobLoach/Console_Table.git
error: Couldn't resolve host 'github.com' while accessing https://github.
com/RobLoach/Console_Table.git/info/refs
fatal: HTTP request failed
- git@github.com:RobLoach/Console_Table.git
ssh: Could not resolve hostname github.com: Temporary failure in name res
olution
fatal: The remote end hung up unexpectedly
install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-p
lugins] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress
] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [--ignore-platform-reqs] [pac
kages1] ... [packagesN]
Anyone can help me? Thanks a lot!
No recent comments found.