Skip to content

Instantly share code, notes, and snippets.

@alexander-arce
Created February 22, 2015 22:30
Show Gist options
  • Select an option

  • Save alexander-arce/3d2495d6ed9c39b8b039 to your computer and use it in GitHub Desktop.

Select an option

Save alexander-arce/3d2495d6ed9c39b8b039 to your computer and use it in GitHub Desktop.
Installing Vagrant from git on RVM
## References ##
# https://gorails.com/setup/ubuntu/14.10
# https://rvm.io/rvm/install
# https://rvm.io/integration/bundler#cd-hook
# https://github.com/mitchellh/vagrant/wiki/Installing-Vagrant-from-source
# http://gillesfabio.com/blog/2011/03/01/rvm-for-pythonistas-virtualenv-for-rubyists/
#Import public key for server
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
#Install RVM
curl -L https://get.rvm.io | bash -s stable
#Load rvm
source ~/.rvm/scripts/rvm
#Set on shell init
echo "source ~/.rvm/scripts/rvm" >> ~/.bashrc
#Install ruby
rvm list known
rvm install ruby-head
rvm use ruby-2.2.0 --default
#Tell to Rubygems not to install the documentation for each package locally
echo "gem: --no-ri --no-rdoc" > ~/.gemrc
git clone https://github.com/mitchellh/vagrant.git
cd vagrant
#Install version needed for vagrant
gem install bundler -v '1.7.13'
chmod +x .rvm/hooks/after_cd_bundler
bundle _1.7.13_ install --binstubs=./bundler_stubs
bundle _1.7.13_ exec rake install
#vagrant 1.7.2 built to pkg/vagrant-1.7.2.gem.
#vagrant (1.7.2) installed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment