I just installed the drush HEAD version in /usr/local/bin, and when I run it from my docroot I get this:

E: You must enable the Drush module for the site you want to use.
Hint: Drush was looking in the site 'sites/default'. You can select another site
with Drush enabled by specifying the Drupal URI to use with the --uri
parameter on the command line or $options['uri'] in your drushrc.php file.

So how do I do that? I thought drush wasn't a module to be enabled anymore?

Comments

owen barton’s picture

Status: Active » Fixed

The simple answer is that you are not running drush-HEAD - you should check your alias or symlinks and see what it is actually pointing at. Try running it with a /full/path/to/drush.php. You will also want to go through and remove all copies of drush 1.x or drush_extras so that you don't get conflicts.

meecect’s picture

Hmm, that makes sense...maybe I installed it a long time ago and forgot about it. That would explain why I couldn't even grep that error string anywhere in the drush distribution.

I'll check this when I get back home.

meecect’s picture

yep, that was it.

thanks,

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

forestmars’s picture

Just in case it helps anyone, I got this error when I set my path to the drush folder and tried to invoke it with "drush". Since the drush folder contains files called both "drush" and "drush.php" (though I have no idea why that would be) drush will fail with that error.

Simple enough, but somewhat puzzling when you encounter it.

HTH, Forest Mars