I have tried to install Drush on OSX 10.9 but it doesn’t seem to have worked. In terminal ‘drush status’ gives
-bash: drush: command not found
I have followed the instructions on http://whaaat.com/installing-drush-7-using-composer
Composer’s directory seems to be correct as my .bash_profile contains:
export PATH="$Trotter/.composer/vendor/bin:$PATH"
Drush exists in the vendor folder of composer
When I tried to install Drush via composer the feedback seemed to suggest it had worked:
Pauls-iMac:~ Trotter$ composer self-update
Updating to version 8e9659bd8317ad3f623c4d17940380443cf8772c.
Downloading: 100%
Use composer self-update --rollback to return to version 1.0.0-alpha9
Pauls-iMac:~ Trotter$ composer global require drush/drush:7.*
Changed current directory to /Users/Trotter/.composer
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
- Installing pear/console_table (1.2.1)
Loading from cache
- Installing symfony/var-dumper (v2.7.1)
Downloading: 100%
- Installing symfony/yaml (v2.7.1)
Downloading: 100%
- Installing d11wtq/boris (v1.0.8)
Loading from cache
- Removing drush/drush (6.5.0)
- Installing drush/drush (7.0.0)
Downloading: 100%
pear/console_table suggests installing pear/Console_Color2 (>=0.1.2)
symfony/var-dumper suggests installing ext-symfony_debug ()
d11wtq/boris suggests installing ext-pcntl (*)
Writing lock file
Generating autoload files
Pauls-iMac:~ Trotter$ drush status
-bash: drush: command not found
(Note I had previously tried to install Drush 6 but hadn't got this to work either)
I would appreciate any advice on what is going wrong here.
$Trotter
set above that line in the bash script? Any reason not to use the standard~
? Have you re-source
d the bash profile since changing it? I think your question just comes down to "why isn't composer's global path in my session's global path", which should hopefully be easy to figure out (and isn't really related to Drupal/Drush as such, in case you're trying to find a solution from either of those systems' points of view)export PATH="~/.composer/vendor/bin:$PATH"
(assuming you run Drush under that user account), orexport PATH="/Users/<username>/.composer/vendor/bin:$PATH"
. Make sure yousource ~/.bash_profile
after making changes unless you start a new terminal session