ga-wdi-boston / php-guide

Other
0 stars 4 forks source link

Laravel Installation #8

Open dvdpwll opened 8 years ago

dvdpwll commented 8 years ago

when I ran this: run composer global require "laravel/installer" it said that I did not have composer installed.

I ran this: sudo apt install composer and it seemed to work I ran run composer global require "laravel/installer" again and it seemed to work fine. I got this as the output:

~$ composer global require "laravel/installer"
Changed current directory to /home/david/.config/composer
Using version ^1.3 for laravel/installer
./composer.json has been created
Loading composer repositories with package information
Updating dependencies (including require-dev)
  - Installing symfony/process (v3.1.4)
    Downloading: 100%         

  - Installing symfony/polyfill-mbstring (v1.2.0)
    Downloading: 100%         

  - Installing symfony/console (v3.1.4)
    Downloading: 100%         

  - Installing guzzlehttp/promises (1.2.0)
    Downloading: 100%         

  - Installing psr/http-message (1.0.1)
    Downloading: 100%         

  - Installing guzzlehttp/psr7 (1.3.1)
    Downloading: 100%         

  - Installing guzzlehttp/guzzle (6.2.1)
    Downloading: 100%         

  - Installing laravel/installer (v1.3.4)
    Downloading: 100%         

symfony/polyfill-mbstring suggests installing ext-mbstring (For best performance)
symfony/console suggests installing symfony/event-dispatcher ()
symfony/console suggests installing psr/log (For using the console logger)
Writing lock file
Generating autoload files
dvdpwll commented 8 years ago

hmm, at the end when I'm supposed to test if laravel was installed correctly I get laravel: command not found. I don't know if this is related to virtual hosts issue from earlier. (I was not able to add 192.168.10.10 homestead.app to /etc/hosts b/c it won't let me save the file)

dvdpwll commented 8 years ago

oh I was supposed to run: composer global require "laravel/installer". But I now get this error:

composer global require "laravel/installer"
Changed current directory to /home/david/.composer

  [ErrorException]                                                             
  file_put_contents(./composer.json): failed to open stream: Permission denie  
  d                                                                            

require [--dev] [--prefer-source] [--prefer-dist] [--no-plugins] [--no-progress] [--no-update] [--update-no-dev] [--update-with-dependencies] [--ignore-platform-reqs] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--] [<packages>]...