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 trialjasonniebauer
28,801 PointsVagrant Up Command Not Found
I'm attempting to setup a Ruby Development Environment.
After downloading the Treehouse VM, I run
jasons-imac:treehouse jasonniebauer$ ls
Vagrantfile projects
jasons-imac:treehouse jasonniebauer$ vagrant up
-bash: vagrant: command not found
jasons-imac:treehouse jasonniebauer$ vagrant up
-bash: vagrant: command not found
What am I doing wrong?
5 Answers
jasonniebauer
28,801 PointsJames Barnett Well, I figured out what the issue is. I downloaded Vagrant, but in the midst of installing everything, I forgot to install Vagrant! No wonder the command could not be found :)
Thanks for your assistance though.
James Barnett
39,199 PointsWhat do you get when you execute echo $PATH
and find / -name vagrant
commands?
jasonniebauer
28,801 Pointsjasons-imac:treehouse jasonniebauer$ echo $PATH
/Users/jasonniebauer/.rbenv/shims:/Users/jasonniebauer/.rbenv/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin
jasons-imac:treehouse jasonniebauer$ find / -name vagrant
find: /.DocumentRevisions-V100: Permission denied
find: /.fseventsd: Permission denied
find: /.Spotlight-V100: Permission denied
find: /.Trashes: Permission denied
jasonniebauer
28,801 PointsWhat does that mean?
James Barnett
39,199 PointsPermission denied means you are searching areas your user account doesn't have access to. You can use sudo find / -name vagrant
jasonniebauer
28,801 PointsI attempted:
jasons-imac:treehouse jasonniebauer$ sudo -name vagrant
usage: sudo -h | -K | -k | -L | -V
usage: sudo -v [-AknS] [-g groupname|#gid] [-p prompt] [-u user name|#uid]
usage: sudo -l[l] [-AknS] [-g groupname|#gid] [-p prompt] [-U user name] [-u
user name|#uid] [-g groupname|#gid] [command]
usage: sudo [-AbEHknPS] [-C fd] [-g groupname|#gid] [-p prompt] [-u user
name|#uid] [-g groupname|#gid] [VAR=value] [-i|-s] [<command>]
usage: sudo -e [-AknS] [-C fd] [-g groupname|#gid] [-p prompt] [-u user
name|#uid] file ...
not really sure what this means...
James Barnett
39,199 PointsThe command is not:
sudo -name vagrant
It's ...
sudo find / -name vagrant