Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialrtprjct
30,548 PointsCannot install Laravel: Stuck at "vagrant up"
I am fairly new to the command line and the computer I am using (Mac OSX 10.9.4)
I was following this installation religiously but still am getting really stuck when I hit the vagrant up command
Here is my error:
/Users/myname/Homestead/scripts/homestead.rb:26:in `read': No such file or directory - /Users/myname/.ssh/id_rsa.pub (Errno::ENOENT)
from /Users/myname/Homestead/scripts/homestead.rb:26:in `block in configure'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.5/plugins/kernel_v2/config/vm_provisioner.rb:72:in `call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.5/plugins/kernel_v2/config/vm_provisioner.rb:72:in `add_config'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.5/plugins/kernel_v2/config/vm.rb:285:in `provision'
from /Users/myname/Homestead/scripts/homestead.rb:24:in `configure'
from /Users/myname/Homestead/Vagrantfile:9:in `block in <top (required)>'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/config/v2/loader.rb:37:in `call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/config/v2/loader.rb:37:in `load'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/config/loader.rb:103:in `block (2 levels) in load'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/config/loader.rb:97:in `each'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/config/loader.rb:97:in `block in load'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/config/loader.rb:94:in `each'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/config/loader.rb:94:in `load'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/vagrantfile.rb:28:in `initialize'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/environment.rb:614:in `new'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/environment.rb:614:in `vagrantfile'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/environment.rb:399:in `host'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/environment.rb:198:in `block in action_runner'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/action/runner.rb:33:in `call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/action/runner.rb:33:in `run'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/environment.rb:386:in `hook'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/environment.rb:596:in `unload'
from /Applications/Vagrant/bin/../embedded/gems/gems/vagrant-1.6.5/bin/vagrant:177:in `ensure in <main>'
from /Applications/Vagrant/bin/../embedded/gems/gems/vagrant-1.6.5/bin/vagrant:177:in `<main>'
here is my Homestead Directory:
total 64
drwxr-xr-x 12 myname staff 408 8 Nov 17:15 .
drwxr-xr-x+ 23 myname staff 782 8 Nov 17:33 ..
-rw-r--r--@ 1 myname staff 6148 8 Nov 16:57 .DS_Store
drwxr-xr-x 13 myname staff 442 8 Nov 16:54 .git
-rw-r--r-- 1 myname staff 14 8 Nov 16:54 .gitattributes
-rw-r--r-- 1 myname staff 10 8 Nov 16:54 .gitignore
drwxr-xr-x 2 myname staff 68 8 Nov 17:15 .vagrant
-rw-r--r-- 1 myname staff 373 8 Nov 17:14 Homestead.yaml
-rw-r--r-- 1 myname staff 260 8 Nov 16:54 Vagrantfile
-rw-r--r-- 1 myname staff 313 8 Nov 16:54 aliases
-rw-r--r-- 1 myname staff 163 8 Nov 16:54 readme.md
drwxr-xr-x 5 myname staff 170 8 Nov 16:54 scripts
and here is my Homestead.yaml file:
---
ip: "192.168.10.10"
memory: 2048
cpus: 1
authorize: /Users/myname/.ssh/id_rsa.pub
keys:
- /Users/myname/.ssh/id_rsa
folders:
- map: /Users/myname/Homestead/Projects
to: /home/vagrant/Sites
sites:
- map: laravel.dev
to: /home/vagrant/Sites/laravel-basics/public
variables:
- key: APP_ENV
value: local
Could someone please tell me what I am missing?
1 Answer
rtprjct
30,548 PointsHey guys, I didn't properly add my SSH key... I did so by going to the link down below in the teachers notes (as recommended in the tutorial itself actually)
Here: https://help.github.com/articles/generating-ssh-keys
Followed that exactly step by step
AND all my worries were resolved