Skip to content

Instantly share code, notes, and snippets.

@deepakaryan1988
Last active August 29, 2015 14:13
Show Gist options
  • Select an option

  • Save deepakaryan1988/f541a874e633a473ae82 to your computer and use it in GitHub Desktop.

Select an option

Save deepakaryan1988/f541a874e633a473ae82 to your computer and use it in GitHub Desktop.
install drush on osx with MAMP
Ref:- http://cambio.name/personal/content/installing-drush-7x-adding-dependencies-using-composer
Installing Drush 7.x (Adding dependencies using composer)
Submitted by admin on Sat, 07/12/2014 - 14:23
1. Download package in some folder
curl -sS https://getcomposer.org/installer | php
rename the binary file and move to
mv composer.phar /usr/local/bin/composer
2. Download Drush using git
git clone https://github.com/drush-ops/drush.git
3. Go to the folder where you have already downloaded the drush app, for example /usr/local/src/drush/ and execute composer
sudo composer install
4. You will see a message to confirm you installation is done
MacOSX:drush asanchez75$ composer install
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. Run update to update them.
[RuntimeException]
vendor does not exist and could not be created.
install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-plugins] [--no-custom-installers] [--no-scripts] [--no-progress] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [packages1] ... [packagesN]
MacOSX:drush asanchez75$ sudo composer install
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. Run update to update them.
- Installing d11wtq/boris (v1.0.8)
Downloading: 100%
- Installing pear/console_table (1.1.5)
Downloading: 100%
- Installing phpunit/php-token-stream (1.2.2)
Downloading: 100%
- Installing symfony/yaml (v2.2.1)
Downloading: 100%
- Installing sebastian/version (1.0.3)
Downloading: 100%
- Installing sebastian/exporter (1.0.1)
Downloading: 100%
- Installing sebastian/environment (1.0.0)
Downloading: 100%
- Installing sebastian/diff (1.1.0)
Downloading: 100%
- Installing phpunit/php-text-template (1.2.0)
Downloading: 100%
- Installing phpunit/phpunit-mock-objects (2.0.5)
Downloading: 100%
- Installing phpunit/php-timer (1.0.5)
Downloading: 100%
- Installing phpunit/php-file-iterator (1.3.4)
Downloading: 100%
- Installing phpunit/php-code-coverage (2.0.5)
Downloading: 100%
- Installing phpunit/phpunit (4.0.17)
Downloading: 100%
- Installing symfony/process (v2.4.5)
Downloading: 100%
d11wtq/boris suggests installing ext-pcntl (*)
pear/console_table suggests installing pear/Console_Color (>=0.0.4)
phpunit/phpunit suggests installing phpunit/php-invoker (~1.1)
Generating autoload files
References
https://getcomposer.org/doc/00-intro.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment