Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/usr/local/bin/vagrant: No such file or directory #56

Closed
grtjn opened this issue Aug 25, 2015 · 5 comments
Closed

/usr/local/bin/vagrant: No such file or directory #56

grtjn opened this issue Aug 25, 2015 · 5 comments
Labels
Milestone

Comments

@grtjn
Copy link
Owner

grtjn commented Aug 25, 2015

Reported by @robpml:

$ vagrant plugin install vagrant-hostmanager
-bash: /usr/local/bin/vagrant: No such file or directory

Noticed when first installing Vagrant 1.7.4, uninstalling, and installing Vagrant 1.7.2.

@grtjn
Copy link
Owner Author

grtjn commented Aug 25, 2015

Vagrant 1.7.2 runs from /usr/bin/vagrant, and some plugins seem to depend on that hard-coded location. One could create a symlink with:

sudo ln -s /usr/bin/vagrant /usr/local/bin/vagrant

This page suggests it might be related with OSX updates, though not clear why:

http://pointlessramblings.com/posts/El_Capitan/

It does come with a slight alternate solution, which might be actually better than the above:

sudo ln -s /opt/vagrant/bin/vagrant /usr/local/bin/vagrant

@grtjn
Copy link
Owner Author

grtjn commented Aug 25, 2015

Closing it for the time being, likely difficult to reproduce. Written down above workaround for future reference..

@grtjn grtjn closed this as completed Aug 25, 2015
@grtjn grtjn modified the milestone: 0.0.2 Aug 26, 2015
@grtjn grtjn added the bug label Sep 9, 2015
@agoransson
Copy link

I had a very similar problem now that I reinstalled vagrant and virtualbox. The symlink didn't help, it turned out to be cached by bash.

This stackexchange post helped me solve my problem.

Either clear the entire cache with hash -r or just one entry hash -d vagrant

@kasimir-k
Copy link

agoransson's cache clearing tip helped me:

I had upgraded VirtualBox to 5.0, after which Vagrant 1.6.5 complained that version of VirtualBox installed that is not supported.

I upgraded Vagrant to 1.8.1 - then vagrant up resulted in -bash: /usr/bin/vagrant: No such file or directory

hash -d vagrant resolved this

@grtjn
Copy link
Owner Author

grtjn commented Feb 22, 2016

Thanks for reporting this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants