Vagrant: Vagrantfile:4: undefined method configure for Vagrant:Module
From FVue
Contents
Problem
$ vagrant up /home/freddy/proj/vagrant_ubuntu-12.04/Vagrantfile:4: undefined method `configure' for Vagrant:Module (NoMethodError) from /usr/lib/ruby/vendor_ruby/vagrant/config/loader.rb:115:in `load' from /usr/lib/ruby/vendor_ruby/vagrant/config/loader.rb:115:in `procs_for_source' from /usr/lib/ruby/vendor_ruby/vagrant/config.rb:41:in `capture_configures' from /usr/lib/ruby/vendor_ruby/vagrant/config.rb:36:in `synchronize' from /usr/lib/ruby/vendor_ruby/vagrant/config.rb:36:in `capture_configures' from /usr/lib/ruby/vendor_ruby/vagrant/config/loader.rb:114:in `procs_for_source' from /usr/lib/ruby/vendor_ruby/vagrant/config/loader.rb:51:in `set' from /usr/lib/ruby/vendor_ruby/vagrant/config/loader.rb:45:in `each' from /usr/lib/ruby/vendor_ruby/vagrant/config/loader.rb:45:in `set' from /usr/lib/ruby/vendor_ruby/vagrant/environment.rb:377:in `load_config!' from /usr/lib/ruby/vendor_ruby/vagrant/environment.rb:392:in `call' from /usr/lib/ruby/vendor_ruby/vagrant/environment.rb:392:in `load_config!' from /usr/lib/ruby/vendor_ruby/vagrant/environment.rb:327:in `load!' from /usr/bin/vagrant:40
Environment
- Ubuntu-12.04 LTS
- Vagrant version 1.0.1
Solution
It appears that vagrant-1.0.1 (a relative old version) was installed, when doing a regular sudo apt-get install vagrant on stock Ubuntu 12.04, whereas I need a newer Vagrant installation. Currently (d.d. May 26, 2013) Vagrant-1.22 is available.
Steps to remove the currently installed vagrant-1.0.1 and replace it with vagrant-1.2.2.
1. sudo apt-get remove vagrant
2. Download and install latest version of vagrant from http://www.vagrantup.com/downloads.html
Advertisement