Hi Guys,

Been successfully using Drush for some projects and just tried to use make files for the first time.

My drush commands are in ~/drush
I placed Drush make in ~/drush/drush_make

Trying to run drush make results in:

The drush command 'make' could not be found. [error]
A Drupal installation directory could not be found

or when trying execute a make file:

bash-3.2$ drush make standard.make
The drush command 'make standard.make' could not be found. [error]
A Drupal installation directory could not be found

Any pointers?

Comments

hixster’s picture

** bumping **

dman’s picture

My drush commands are in ~/drush
I placed Drush make in ~/drush/drush_make

ok, um, check the README files.


You can put your drush command file in a number of places:

  - In a folder specified with the --include option (see above).
  - Along with one of your existing modules. If your command is related to an
    existing module, this is the preferred approach.
  - In a .drush folder in your HOME folder. Note, that you have to create the
    .drush folder yourself.
  - In the system-wide drush commands folder, e.g. /usr/share/drush/commands

In any case, it is important that you end the filename with ".drush.inc", so
that drush can find it.

... so ... not in ~/drush.
Although path/to/drush/commands can also work - don't do that these days.

hixster’s picture

Awesome - it works - can't believe i didn't notice the directory was wrong - nevermind :-)

Thanks

Anonymous’s picture

~/drush is not the right location for drush_make.
You should move it to either ~/.drush or ~/drush/commands.

helmo’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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