Recently Jeff Geerling posted quick and easy instructions about how to get Drush up and running on Snow Leopard.
Drush was mentioned during a previous post here when I wrote about the new Google CLI.
To recap, Drush is a command-line interface for drupal that speeds installation and activation of modules. Instead of using the mouse to navigate, download, install, and then enable a module or theme, you simply type the command in a terminal window.
Despite its time-saving features, it can be a bit of a pain to install initially and involves some Unix command line basics.
He also edited the post to mention using Homebrew, but my experience with homebrew left with me with a failed installation.
The manual instructions from Jeff are as follows:
<ol>
<li>Fire up the Terminal (this is why you're using Drush, so you'd better get comfy in here!).
cd to your Desktop, download drush, and extract it.
$ cd Desktop $ wget http://ftp.drupal.org/files/projects/drush-6.x-3.3.tar.gz $ tar -xvzf drush-6.x-3.3.tar.gz
<li>Move the drush directory to /usr/local/lib
$ sudo mv drush /usr/local/lib
<li>Make drush executable.
$ sudo chmod u+x /usr/local/lib/drush/drush
<li>Make a symbolic link to drush in /usr/bin
$ sudo ln -s /usr/local/lib/drush/drush /usr/bin/drush
<li>Set up an alias in your bash environment so you can type 'drush command' rather than '/usr/bin/drush command'
$ cd ~ $ nano .profile # Inside the .profile file: alias drush="/usr/bin/drush" # Then press control-O + return to write the file, and control-X to exit nano $ source .profile
</ol>Thanks Jeff for the great information.
![]()
Add new comment