Vagrant: command not found after installation on Mac OSX 10.10.4

Downloaded Vagrant and went through the installation process. When I ran the tramp -v, he said that the tramp: the command was not found. He placed the files in / opt / vagrant / ...

It must be installed in the Applications folder with a link to / usr / bin so that it is added to the shell path. There is no catalog during this process. I'm afraid I can't even start with this. Obviously, IT professionals do not create all the shortcuts needed to execute commands.

I was looking for support on this issue and reported an error.

I also accepted the xcode license agreement.

Anyone else had this problem. The next step is to manually create the shortcuts.

+6
source share
4 answers

If you look at the removal of the script, including in the Vagrant DMG, this applies to / usr / local / bin, which does not exist. It should be error handling (Vagrant pkg installer) and create it (permissions / ownership, etc.), but it is not.

You need mkdir / usr / local / bin. I tried to use the symbolic link between / usr / bin / vagrant (since / usr / bin exists in the path) for / opt / vagrant / bin / vagrant, but this does not work, as later in life, Vagrant refers to the hard mod on / usr / local / bin / vagrant because its stupid.

$ sudo mkdir /usr/local/bin 

If you understand this, this should be done with proper ownership, etc. Now just restart the Vagrant pkg installer.

+6
source

Make sure Virtual Box installation is installed on Mac before installing Vagrant. After installing the virtual box and trying to reinstall the tramp, the "stray command not found" is resolved.

+1
source

I raised an error using https://github.com/mitchellh/vagrant/issues/6034 The problem is that I didn’t have the / usr / local directory at all.

This is a problem with the apple. After I created the catalogs as you described, I was able to install stray vitrul boaxes and laravel.

Here is what I did.

sudo mkdir / usr / local

Then bin.

cd / usr / local sudo mkdir bin

I uninstalled Vagrant, reinstalled and when I ran vagrant -v, I got the version.

cd / usr / local / bin Ls sudo chmod 755 tramp

Thanks for your reply.

0
source

Strange, on 1.8.5 I could not start Vagrant either, noticed that / usr / local / bin was owned by root. Ran Team

 # chown -R User:Group /usr/local/bin 

as root and works with my username now.

0
source

All Articles