Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

vagrant: command not found after install on Mac OSX 10.10.4

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.

like image 533
user1712691 Avatar asked Jul 26 '15 08:07

user1712691


People also ask

How do I know if vagrant is installed on my Mac?

Command: vagrant version If you only want to see the currently installed version, use vagrant --version .

How do I download vagrant on terminal?

Installing Vagrant is extremely easy. Head over to the Vagrant downloads page and get the appropriate installer or package for your platform. Install the package using standard procedures for your operating system. The installer will automatically add vagrant to your system path so that it is available in terminals.


1 Answers

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.

like image 88
Joel Samuel Avatar answered Nov 15 '22 08:11

Joel Samuel