Vagrant Berkshell插件错误:无法加载内核_require.rb

Vagrant Berkshell插件错误:无法加载内核_require.rb,vagrant,berkshelf,vagrant-plugin,Vagrant,Berkshelf,Vagrant Plugin,我正在尝试使用流浪者和流浪者插件。我有一个包含Vagrant文件和Berksfile的项目目录: 流浪汉档案 # -*- mode: ruby -*- # vi: set ft=ruby : Vagrant.configure("2") do |config| config.vm.box = "hashicorp/precise64" config.berkshelf.berksfile_path = "Berksfile" config.berkshelf.enabled =

我正在尝试使用流浪者和流浪者插件。我有一个包含Vagrant文件和Berksfile的项目目录:

流浪汉档案

# -*- mode: ruby -*-
# vi: set ft=ruby :

Vagrant.configure("2") do |config|
  config.vm.box = "hashicorp/precise64"

  config.berkshelf.berksfile_path = "Berksfile"
  config.berkshelf.enabled = true

  config.vm.provision "chef_solo" do |chef| 
     chef.add_recipe "java"
     chef.json = {
        :java => {
           :install_flavor => "oracle",
           :jdk_version => "8",
           :oracle => {
              :accept_oracle_download_terms => true
           }
        }
     }
  end
end
伯克斯菲尔

source 'https://supermarket.chef.io'

metadata
cookbook "java"
当我执行“vagrant up”时,我的控制台说它无法加载kernel_require.rb文件:

C:\HashiCorp\Vagrant\embedded\lib\ruby\2.2.0\rubygems\core_ext\kernel_require.rb:54:in 'require': cannot load such file -- bundler (LoadError)
from C:/HashiCorp/Vagrant/embedded/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
    from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.0/lib/vagrant/util/env.rb:1:in `<top (required)>'
    from C:/Users/smundra/.vagrant.d/gems/2.2.5/gems/vagrant-berkshelf-5.1.1/lib/vagrant-berkshelf/helpers.rb:62:in `berks'
    from C:/Users/smundra/.vagrant.d/gems/2.2.5/gems/vagrant-berkshelf-5.1.1/lib/vagrant-berkshelf/action/check.rb:33:in `berkshelf_version_check!'
    from C:/Users/smundra/.vagrant.d/gems/2.2.5/gems/vagrant-berkshelf-5.1.1/lib/vagrant-berkshelf/action/check.rb:16:in `call'
    from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.0/lib/vagrant/action/warden.rb:34:in `call'
    from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.0/lib/vagrant/action/builtin/config_validate.rb:25:in `call'
    from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.0/lib/vagrant/action/warden.rb:34:in `call'
    from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.0/lib/vagrant/action/warden.rb:95:in `block in finalize_action'
    from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.0/lib/vagrant/action/warden.rb:34:in `call'
    from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.0/lib/vagrant/action/warden.rb:34:in `call'
    from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.0/lib/vagrant/action/builtin/handle_box.rb:56:in `call'
    from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.0/lib/vagrant/action/warden.rb:34:in `call'
    from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.0/lib/vagrant/action/warden.rb:95:in `block in finalize_action'
    from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.0/lib/vagrant/action/warden.rb:34:in `call'
    from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.0/lib/vagrant/action/warden.rb:34:in `call'
    from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.0/lib/vagrant/action/builder.rb:116:in `call'
    from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.0/lib/vagrant/action/runner.rb:66:in `block in run'
    from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.0/lib/vagrant/util/busy.rb:19:in `busy'
    from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.0/lib/vagrant/action/runner.rb:66:in `run'
    from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.0/lib/vagrant/action/builtin/call.rb:53:in `call'
    from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.0/lib/vagrant/action/warden.rb:34:in `call'
    from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.0/plugins/providers/virtualbox/action/check_virtualbox.rb:17:in `call'
    from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.0/lib/vagrant/action/warden.rb:34:in `call'
    from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.0/lib/vagrant/action/builder.rb:116:in `call'
    from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.0/lib/vagrant/action/runner.rb:66:in `block in run'
    from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.0/lib/vagrant/util/busy.rb:19:in `busy'
    from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.0/lib/vagrant/action/runner.rb:66:in `run'
    from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.0/lib/vagrant/machine.rb:225:in `action_raw'
    from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.0/lib/vagrant/machine.rb:200:in `block in action'
    from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.0/lib/vagrant/environment.rb:567:in `lock'
    from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.0/lib/vagrant/machine.rb:186:in `call'
    from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.0/lib/vagrant/machine.rb:186:in `action'
    from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.0/lib/vagrant/batch_action.rb:82:in `block (2 levels) in run'
C:\HashiCorp\Vagrant\embedded\lib\ruby\2.2.0\rubygems\core\u ext\kernel\u require.rb:54:in'require':无法加载此类文件--捆绑程序(LoadError)
来自C:/HashiCorp/Vagrant/embedded/lib/ruby/2.2.0/rubygems/core\u ext/kernel\u require.rb:54:in'require'
来自C:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.9.0/lib/Vagrant/util/env.rb:1:in`'
来自C:/Users/smundra/.vagrant.d/gems/2.2.5/gems/vagrant-berkshell-5.1.1/lib/vagrant-berkshell/helpers.rb:62:in`berks'
来自C:/Users/smundra/.vagrant.d/gems/2.2.5/gems/vagrant-berkshell-5.1.1/lib/vagrant-berkshell/action/check.rb:33:in'berkshell\u version\u check!'
来自C:/Users/smundra/.vagrant.d/gems/2.2.5/gems/vagrant-berkself-5.1.1/lib/vagrant-berkself/action/check.rb:16:in'call'
来自C:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.9.0/lib/Vagrant/action/warden.rb:34:in'call'
来自C:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.9.0/lib/Vagrant/action/builtin/config_validate.rb:25:in'call'
来自C:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.9.0/lib/Vagrant/action/warden.rb:34:in'call'
来自C:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.9.0/lib/Vagrant/action/warden.rb:95:in `最后确定动作中的块'
来自C:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.9.0/lib/Vagrant/action/warden.rb:34:in'call'
来自C:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.9.0/lib/Vagrant/action/warden.rb:34:in'call'
来自C:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.9.0/lib/Vagrant/action/builtin/handle\u box.rb:56:in'call'
来自C:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.9.0/lib/Vagrant/action/warden.rb:34:in'call'
来自C:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.9.0/lib/Vagrant/action/warden.rb:95:in `最后确定动作中的块'
来自C:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.9.0/lib/Vagrant/action/warden.rb:34:in'call'
来自C:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.9.0/lib/Vagrant/action/warden.rb:34:in'call'
来自C:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.9.0/lib/Vagrant/action/builder.rb:116:in'call'
来自C:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.9.0/lib/Vagrant/action/runner.rb:66:in'block in run'
来自C:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.9.0/lib/Vagrant/util/busy.rb:19:in'busy'
来自C:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.9.0/lib/Vagrant/action/runner.rb:66:in'run'
来自C:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.9.0/lib/Vagrant/action/builtin/call.rb:53:in'call'
来自C:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.9.0/lib/Vagrant/action/warden.rb:34:in'call'
来自C:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.9.0/plugins/providers/virtualbox/action/check_virtualbox.rb:17:in'call'
来自C:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.9.0/lib/Vagrant/action/warden.rb:34:in'call'
来自C:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.9.0/lib/Vagrant/action/builder.rb:116:in'call'
来自C:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.9.0/lib/Vagrant/action/runner.rb:66:in'block in run'
来自C:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.9.0/lib/Vagrant/util/busy.rb:19:in'busy'
来自C:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.9.0/lib/Vagrant/action/runner.rb:66:in'run'
来自C:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.9.0/lib/Vagrant/machine.rb:225:in'action_raw'
来自C:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.9.0/lib/Vagrant/machine.rb:200:in'block in action'
来自C:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.9.0/lib/Vagrant/environment.rb:567:in'lock'
来自C:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.9.0/lib/Vagrant/machine.rb:186:in'call'
来自C:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.9.0/lib/Vagrant/machine.rb:186:in'action'
来自C:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.9.0/lib/Vagrant/batch_action.rb:82:“运行中的块(2级)”中
我已确认此文件存在于我的计算机上的那个位置。我的PATH变量中也包含此文件。我如何解决这个问题