Advertisement
soulwon

Install Drush with Composer

Jun 15th, 2016
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.01 KB | None | 0 0
  1. noah@ubuntuServer:~ $ php composer.phar
  2. Could not open input file: composer.phar
  3. noah@ubuntuServer:~ $ php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
  4. noah@ubuntuServer:~ $ php -r "if (hash_file('SHA384', 'composer-setup.php') === '070854512ef404f16bac87071a6db9fd9721da1684cd4589b1196c3faf71b9a2682e2311b36a5079825e155ac7ce150d') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
  5. Installer verified
  6. noah@ubuntuServer:~ $ php composer-setup.php
  7. All settings correct for using Composer
  8. PHP Warning: file_put_contents(/home/noah/.composer/keys.dev.pub): failed to open stream: Permission denied in /home/noah/composer-setup.php on line 466
  9. PHP Warning: file_put_contents(/home/noah/.composer/keys.tags.pub): failed to open stream: Permission denied in /home/noah/composer-setup.php on line 483
  10. Downloading 1.1.2...
  11.  
  12. Composer successfully installed to: /home/noah/composer.phar
  13. {
  14. "require": {
  15. "monolog/monolog": "1.0.*"
  16. }
  17. }
  18. ~
  19. ~
  20. ~
  21. ~
  22. ~
  23. ~
  24. ~
  25. ~
  26. ~
  27. ~
  28. "composer.json" [New] 5L, 62C written
  29. noah@ubuntuServer:~/tmp $ php composer.phar install
  30. Could not open input file: composer.phar
  31. noah@ubuntuServer:~/tmp $ composer install
  32. Cannot create cache directory /home/noah/.composer/cache/repo/https---packagist.org/, or directory is not writable. Proceeding without cache
  33. Cannot create cache directory /home/noah/.composer/cache/files/, or directory is not writable. Proceeding without cache
  34. Cannot create cache directory /home/noah/.composer/cache/repo/https---packagist.org/, or directory is not writable. Proceeding without cache
  35. Loading composer repositories with package information
  36. Updating dependencies (including require-dev)
  37. - Installing monolog/monolog (1.0.2)
  38. Downloading: 100%
  39.  
  40. Writing lock file
  41. Generating autoload files
  42. noah@ubuntuServer:~/tmp $ sudo chown -R $USER $HOME/.composer
  43. [sudo] password for noah:
  44. noah@ubuntuServer:~/tmp $ composer install
  45. Loading composer repositories with package information
  46. Installing dependencies (including require-dev) from lock file
  47. Nothing to install or update
  48. Generating autoload files
  49. noah@ubuntuServer:~/tmp $ composer --version
  50. Composer version 1.1.2 2016-05-31 19:48:11
  51. noah@ubuntuServer:~/tmp $ export PATH="$HOME/.composer/vendor/bin:$PATH"
  52. noah@ubuntuServer:~/tmp $ bash
  53. noah@ubuntuServer:~/tmp $ echo $PATH
  54. /home/noah/.composer/vendor/bin:/home/noah/.composer/vendor/bin:/home/noah/.composer/vendor/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin
  55. noah@ubuntuServer:~/tmp $ composer global require drush/drush:dev-master
  56. Changed current directory to /home/noah/.composer
  57. ./composer.json has been updated
  58. Loading composer repositories with package information
  59. Updating dependencies (including require-dev)
  60. Your requirements could not be resolved to an installable set of packages.
  61.  
  62. Problem 1
  63. - Installation request for drush/drush dev-master -> satisfiable by drush/drush[dev-master].
  64. - drush/drush dev-master requires codegyre/robo ~1.0.0-beta1 -> satisfiable by codegyre/robo[1.0.0-beta1] but these conflict with your requirements or minimum-stability.
  65.  
  66.  
  67. Installation failed, reverting ./composer.json to its original content.
  68. noah@ubuntuServer:~/tmp $ composer global require drush/drush:dev-master
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement