Installing Drush via Pear

Error message

Deprecated function: Function create_function() is deprecated in GeSHi->_optimize_regexp_list_tokens_to_string() (line 4698 of /home/projects/peter-j-lord/sites/all/libraries/geshi/geshi.php).
Rating: 
+1
+316
-1
Clone this Snippet
The easiest way to install the latest release of Drush on Unix/Linux systems is via our custom PEAR channel.
sudo apt-get install php-pear
 
pear channel-discover pear.drush.org
pear install drush/drush
drush version
 
# I had to install this as well
sudo pear install Console_Table
Category: 
Drupal
Drupal Version: 
678
Drupal Category: 
AdministrationDrushUtility