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 trial

Ruby

jasonniebauer
jasonniebauer
28,801 Points

Vagrant 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
jasonniebauer
28,801 Points

James 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
James Barnett
39,199 Points

What do you get when you execute echo $PATHand find / -name vagrant commands?

jasonniebauer
jasonniebauer
28,801 Points

James Barnett

jasons-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
James Barnett
James Barnett
39,199 Points

Permission denied means you are searching areas your user account doesn't have access to. You can use sudo find / -name vagrant

jasonniebauer
jasonniebauer
28,801 Points

James Barnett

I 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
James Barnett
39,199 Points

The command is not:

sudo -name vagrant

It's ...

sudo find / -name vagrant