I had a working drush 5.6 (manually installed) on OSX (Yosemite) and decided I wanted to upgrade to the latest drush 7 version. I ended up with version 6.0-dev.
I followed the installation isntructions and decided to use homebrew to install composer and drush. So far so good, but the thing is, I can't seem to get to the latest "master" dev version: I'm stuck on 6.0-dev.
I tried different ways like:
brew install --HEAD drush
brew switch drush HEAD
and:
composer global require drush/drush:dev-master
composer global update
My composer.json looks like this:
{
"require": {
"drush/drush": "dev-master"
}
}
which drush:
/usr/local/bin/drush
drush status:
PHP executable : /usr/bin/php
PHP configuration :
PHP OS : Darwin
Drush version : 6.0-dev
Drush configuration :
Drush alias files : /Users/albert/.drush/aliases.drushrc.php
Any ideas?
git clone https://github.com/drush-ops/drush.git /usr/local/share/drush; cd /usr/local/share/drush; composer install; ln -s /usr/local/share/drush/drush /usr/local/bin/drush
.which drush
is wrong if you've installed via Composer. The correct path would be somewhere in~/.composer/
(or wherever you have composer install to globally). You've probably installed via brew, that didn't work, haven't removed the brew version, then installed via composer, and forgotten to add composer's global path to your system path. So it's still picking up brew's version in /usr/local/bin.brew remove drush
before trying the composer method, then add that path to system path, and you should be good[ -z "$PS1" ] && return
. Removing all of the other installations of Drush on the system also works, of course.