vagrant: command not found after install on Mac OSX 10.10.4
Solution 1
If you look at the uninstall script including in the Vagrant DMG, it is referring to /usr/local/bin which does not exist. It should be error handling (the Vagrant pkg installer) and create it (permissions/ownership etc) but it doesn't.
You need to mkdir the /usr/local/bin. I tried a symlink between /usr/bin/vagrant (as /usr/bin exists, and in-path) to /opt/vagrant/bin/vagrant BUT this does not work, as later on in life, Vagrant refers in a hard fashion to /usr/local/bin/vagrant because its stupid.
$ sudo mkdir /usr/local/bin
If you sudo it, it should be made with correct ownership etc. Now just re-run the Vagrant installer pkg.
Solution 2
Make sure the Virtual Box setup is installed on Mac before installing Vagrant.
Related videos on Youtube
user1712691
Updated on November 08, 2022Comments
-
user1712691 over 1 year
Downloaded Vagrant, and went through th installation process. When I ran vagrant -v it says vagrant: command not found It has put the files in /opt/vagrant/...
It should install in the Applications folder with a link to the /usr/bin so it is added to the shell path. There is no directory that has been created during this process. I am afraid I can't even get started with it. ITs obviously not creating all the shortcuts it needs to be able to run the commands.
I have looked for support on this issue and reported a bug.
I also accepted the xcode licence agreement.
Has anybody else had this issue. My next step is to manually create the shortcuts.