« fixing mcrypt error | Main | Installing DEIMS using features »
November 08, 2011
Installing drush (version 2.0)
Follow instructions drupal.org/project/drush
Install pear:
$ sudo apt-get install php-pear
Upgrade pear (optional):
$ pear upgrade
Establish channel:
$ sudo pear channel-discover pear.drush.org
Install drush:
$ sudo pear install drush/drush
Try drush:
$ drush
Get error:
The drush command 'help' could not be found. [error]
Drush needs a copy of the PEAR Console_Table library in order to [error]
function, and the attempt to download this file automatically failed
because you do not have permission to write files in
/usr/share/php/drush/includes. To continue you will need to download
the 1.1.3 package from http://pear.php.net/package/Console_Table,
extract it, and copy the Table.php file into Drush's directory as
/usr/share/php/drush/includes/table.inc.
$ sudo wget http://download.pear.php.net/package/Console_Table-1.1.3.tgz
$ sudo tar -xzf Console_Table-1.1.3.tgz
$ sudo mv Console_Table-1.1.3/Table.php /opt/drush/includes/table.inc
Initiated by following error:
SeFatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 4864 bytes) in /var/d2e/sites/all/modules/ctools/includes/stylizer.inc on line 1736
Drush command terminated abnormally due to an unrecoverable error. [error]
Error: Allowed memory size of 33554432 bytes exhausted (tried to allocate
4864 bytes) in /var/d2e/sites/all/modules/ctools/includes/stylizer.inc, line
1736
Your memory limit is set to 32M; drush needs as much memory to run as Drupal.[error]
Please check your configuration settings in /etc/php5/cli/php.ini or in your
drush.ini file; see examples/example.drush.ini for details.
t memory to same amount that Drupal gets.
Locate where drush config file is located:
$ drush status
$ sudo nano /etc/php5/cli/php.in
Posted by kkwaiser at November 8, 2011 05:11 PM
Trackback Pings
TrackBack URL for this entry:
http://mblog.lib.umich.edu/mt-bin/mt-tb.cgi/2293