I can not install DRUSH using PEAR

Avatar
  • Answered
Givea this error: [email protected] [~]# pear channel-discover pear.drush.org Discovering channel pear.drush.org over http:// failed with message: channel-add: Cannot open "http://pear.drush.org/channel.xml" (Connection to `pear.drush.org:80' failed: php_network_getaddresses: getaddrinfo failed: Name or service not known) Trying to discover channel pear.drush.org over https:// instead Discovery of channel "pear.drush.org" failed (channel-add: Cannot open "https://pear.drush.org/channel.xml" (Connection to `pear.drush.org:443' failed: php_network_getaddresses: getaddrinfo failed: Name or service not known)) This is my configuration: Configuration (channel pear.php.net): ===================================== Auto-discover new Channels auto_discover Default Channel default_channel pear.php.net HTTP Proxy Server Address http_proxy PEAR server [DEPRECATED] master_server pear.php.net Default Channel Mirror preferred_mirror pear.php.net Remote Configuration File remote_config PEAR executables directory bin_dir /home/sifneo5/bin PEAR documentation directory doc_dir /home/sifneo5/php/docs PHP extension directory ext_dir /home/sifneo5/php/ext PEAR directory php_dir /home/sifneo5/php PEAR Installer cache directory cache_dir /home/sifneo5/tmp/pear/cache PEAR configuration file cfg_dir /usr/local/lib/php/cfg directory PEAR data directory data_dir /home/sifneo5/php/data PEAR Installer download download_dir /home/sifneo5/tmp/pear/cache directory Systems manpage files man_dir /usr/local/php/man directory PEAR metadata directory metadata_dir PHP CLI/CGI binary php_bin /usr/local/bin/php php.ini location php_ini /usr/local/lib/php.ini --program-prefix passed to php_prefix PHP's ./configure --program-suffix passed to php_suffix PHP's ./configure PEAR Installer temp directory temp_dir /home/sifneo5/tmp/pear PEAR test directory test_dir /home/sifneo5/php/tests PEAR www files directory www_dir /usr/local/lib/php/htdocs Cache TimeToLive cache_ttl 3600 Preferred Package State preferred_state stable Unix file mask umask 22 Debug Log Level verbose 1 PEAR password (for password maintainers) Signature Handling Program sig_bin /usr/bin/gpg Signature Key Directory sig_keydir /usr/local/etc/pearkeys Signature Key Id sig_keyid Package Signature Type sig_type gpg PEAR username (for username maintainers) User Configuration File Filename /home/sifneo5/.pearrc System Configuration File Filename /usr/local/etc/pear.conf [email protected] [~]#
Avatar
Scott
Hello psifneos, Sorry to hear you are having trouble with installing Drush via PEAR. Have you tried installing Drush with Composer? This should get it installed on your server and have you ready to go. Kindest Regards, Scott M