Open kichik opened 8 years ago
I was able to work around the issue by manually installing ruby_dep
first with:
vagrant plugin install ruby_dep --plugin-version 1.3.1
vagrant plugin install vagrant-unison2
I'm also having this problem on OSX and can confirm that the same fix works.
Are you running Ruby < 2.2.5 when you get this error? (Looks like the default OSX ruby on El Capitan is 2.0.0)
I'm using RVM and the output of ruby -v is 2.3.1. Maybe the plugin install is defaulting to the system Ruby - let me check to make sure the Ruby versions are correct.
That was the problem - rvm was using 2.2.0. After installing 2.3.1 and setting it as the default all is good, thanks!
👍 I'm going to close this, but lmk if the windows version is a different bug.
I am unaware of an easy way to upgrade the bundled version of Ruby for Vagrant. Maybe vagrant-unison2
can directly require ruby_dep
with a version supported by Vagrant 1.8.5 on Windows?
@kichik the problem disappeared for me when I upgraded the version of Ruby my shell uses, not the bundled Vagrant one. Maybe that would help? I was using Ruby 2.2.0 installed with RVM. As soon as I installed 2.3.1 and set it as the default Ruby the problem went away. I'm on OSX though so not sure how this would work on Windows.
@dcosson also getting this on OS X, using rbenv w/ ruby 2.2.4 vagrant 1.8.5
I'm seeing this on OSX too once I updated to vagrant 1.8.5.
It looks like this PR is related https://github.com/mitchellh/vagrant/pull/7684 so hopefully vagrant 1.8.6 will fix this issue.
Until then a workaround is using an older vagrant or a newer ruby version, or installing vagrant unison from source by cloning this repo, running bundle install && bundle exec rake build
and then vagrant plugin install pkg/vagrant-unison2-2.0.0.gem
I have tried install the latest version on Windows 10 with Vagrant 1.8.5 and kept getting an error. Manually trying to install the gem shows the
ruby_dep
dependency requires Ruby 2.2.5 and above, but Vagrant comes bundled with Ruby 2.2.3. I have tried installing every version ofvagrant-unison2
between 1.0.0 and 1.2.4 with no success.ruby_dep
1.4.0 came out 2 days ago, so it might be related.The full error message:
Manual installation error: