itsdarrylnorris / lazydubuntu

(Deprecated) Setting Up my Drupal Enviroment in Ubuntu
http://www.lazydubuntu.com
Apache License 2.0
20 stars 10 forks source link

Drush missing composer #9

Closed itsdarrylnorris closed 9 years ago

itsdarrylnorris commented 9 years ago

For some reason composer is not been install, and this is the error that it show once Drush is been run.

Unable to load autoload.php. Drush now requires Composer in order to install its dependencies and autoload classes. Please see README.md
bdgreen commented 9 years ago

More details:

Fresh install of Ubuntu 14.04 LTS 64bit as a VirtualBox (4.3.20) guest on a Linux openSUSE 12.3 x86-64 host (with Extension Pack and Guest Additions installed). Error message (part):

" lazydubuntu.sh: line 105: php​: command not found curl: (23) Failed writing body (0 != 8030) mv: cannot stat ‘composer.phar’: No such file or directory Cloning into 'drush'... remote: Counting objects: 28534, done. remote: Compressing objects: 100% (35/35), done. remote: Total 28534 (delta 15), reused 8 (delta 3) Receiving objects: 100% (28534/28534), 10.54 MiB | 493.00 KiB/s, done. Resolving deltas: 100% (16121/16121), done. Checking connectivity... done. lazydubuntu.sh: line 114: composer: command not found PPA for Atom text editor: https://atom.io

Now available for both 32bit and 64bit! " [snip] " Installing atom-beautifier to /home/ubuntu/.atom/packages ✗ Unable to download https://www.atom.io/api/packages/atom-beautifier/versions/0.5.0/tarball: 400 Bad Request Repository inaccessible " ...

bdgreen commented 9 years ago

Darryl, Is the installer file (downloaded at line 105 via "sudo curl -sS https://getcomposer.org/installer | php​") too large at 268.2 KiB to pipe through php? Better to download, then execute?

itsdarrylnorris commented 9 years ago

@bdgreen To be honest I dont know. I find this very weird because I run the command again "sudo curl -sS https://getcomposer.org/installer | php​" on my clean environment and for some reason it work but in the shell script it did not. From the composer website their another alternative to download and install composer if you do not have curl is this

php -r "readfile('https://getcomposer.org/installer');" | php

I'm going to try it out tonight and see if works with the shell script or not. If this alternative does not work I will try it download it then execute.

bdgreen commented 9 years ago

The readfile, alternative to curl, worked fine for me in a test script run on my Ubuntu V'Box guest.

itsdarrylnorris commented 9 years ago

On my virtual machine as well. I'm going to make the changes.