Vagrant is a tool to build and manage virtual machines for developers. It has a getting started on Ubuntu guide that contains iffy-looking suggestions like
$ sudo ln -s /usr/bin/ruby1.8 /usr/bin/ruby # wtf???
or installing RubyGems from source rather than from Ubuntu packages, and then using gem install
to install vagrant itself.
I'm not feeling comfortable just following those instructions. Is there perhaps a PPA? Are there, perhaps, alternative tools that are packaged for Ubuntu?
Nowadays you can download self-contained .deb files from http://www.vagrantup.com/downloads.html
Not as good as a PPA, but at least you can introspect what files get installed where and remove the package cleanly.
12.04
Vagrant 1.0.1 is now included in universe in 12.04 and you can install this via the Software Center.
There is nothing to worry about the instructions in this getting started on Ubuntu guide. Making a soft link to
/usr/bin/ruby1.8
does not harm your system in anyway. Just go ahead with the tutorial and install vagrant.To install vagrant you can use:As far as i know there is no PPA available for vagrant. The best method to install it is using the gem.
If you are feeling any difficulties feel free to post it here
If you are using Ruby:
It's better to install it via Rubygems despite the website's recommendation of .deb installation. The website seems to be a little behind on updates. The instructions of the vagrant gem seem more up-to-date: https://github.com/mitchellh/vagrant
If Bundler is installing a sub-1.0.0 version of the gem:
gem 'vagrant'
above all other gems in yourGemfile
and runbundle install
.gem 'vagrant', '~> 1.0'
and runbundle install
.Sometimes bundler installs an old version of the
vagrant
gem if your other gems installed old versions of gems, likejson
.