Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

How do I install vagrant alongside a specific version of ruby installed using RVM?

I have both 1.8.7 and 1.9.3p429 installed. After using RVM to set my default to 1.9.3 I no longer have vagrant available. I could re-install using "gem install vagrant" but this is out of date and doesn't use the providers options.

share|improve this question

2 Answers 2

Vagrant has shifted to using system packages as of version 1.1. So, how to use vagrant along-side RVM? RVM comes with the ability to wrap executables and run them with a specific ruby/gemset.

$ rvm wrapper system --no-prefix /path/to/vagrant

Where vagrant is the executable vagrant that was installed by your package manager.

share|improve this answer

Use the latest version of vagrant installer from http://downloads.vagrantup.com/, it puts vagrant binary in /usr/bin/vagrant which should be always in PATH.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.