2017-03-06 61 views
0

我嘗試下面的命令來運行: vagrant plugin install vagrant-librarian-chef流浪漢,館員廚師需要Ruby版本> = 2.0在Ubuntu public_suffix

Installing the 'vagrant-librarian-chef' plugin. This can take a few minutes... 
/usr/lib/ruby/1.9.1/rubygems/installer.rb:388:in `ensure_required_ruby_version_met': public_suffix requires Ruby version >= 2.0. (Gem::InstallError) 
    from /usr/lib/ruby/1.9.1/rubygems/installer.rb:156:in `install' 
    from /usr/lib/ruby/1.9.1/rubygems/dependency_installer.rb:297:in `block in install' 
    from /usr/lib/ruby/1.9.1/rubygems/dependency_installer.rb:270:in `each' 
    from /usr/lib/ruby/1.9.1/rubygems/dependency_installer.rb:270:in `each_with_index' 
    from /usr/lib/ruby/1.9.1/rubygems/dependency_installer.rb:270:in `install' 
    from /usr/share/vagrant/plugins/commands/plugin/action/install_gem.rb:65:in `block in call' 
    from /usr/share/vagrant/plugins/commands/plugin/gem_helper.rb:42:in `block in with_environment' 
    from /usr/lib/ruby/1.9.1/rubygems/user_interaction.rb:40:in `use_ui' 
    from /usr/share/vagrant/plugins/commands/plugin/gem_helper.rb:41:in `with_environment' 
    from /usr/share/vagrant/plugins/commands/plugin/action/install_gem.rb:52:in `call' 
    from /usr/lib/ruby/vendor_ruby/vagrant/action/warden.rb:34:in `call' 
    from /usr/share/vagrant/plugins/commands/plugin/action/bundler_check.rb:20:in `call' 
    from /usr/lib/ruby/vendor_ruby/vagrant/action/warden.rb:34:in `call' 
    from /usr/lib/ruby/vendor_ruby/vagrant/action/builder.rb:116:in `call' 
    from /usr/lib/ruby/vendor_ruby/vagrant/action/runner.rb:69:in `block in run' 
    from /usr/lib/ruby/vendor_ruby/vagrant/util/busy.rb:19:in `busy' 
    from /usr/lib/ruby/vendor_ruby/vagrant/action/runner.rb:69:in `run' 
    from /usr/share/vagrant/plugins/commands/plugin/command/base.rb:17:in `action' 
    from /usr/share/vagrant/plugins/commands/plugin/command/install.rb:27:in `execute' 
    from /usr/share/vagrant/plugins/commands/plugin/command/root.rb:56:in `execute' 
    from /usr/lib/ruby/vendor_ruby/vagrant/cli.rb:38:in `execute' 
    from /usr/lib/ruby/vendor_ruby/vagrant/environment.rb:484:in `cli' 
    from /usr/bin/vagrant:127:in `<main>' 

我在Ubuntu 14.04 嘗試這個我已經能夠成功地安裝以下流浪漢插件:

  1. 流浪漢,vbguest
  2. 流浪漢,綜合
  3. 流浪者,觸發
  4. 流浪漢,hostmanager
+0

正如錯誤消息所述,您的1.9.3 Ubuntu 14.04上的Ruby對於這個太舊了。不幸的是,考慮到情況(安裝Vagrant插件),您使用rvm或rbenv的選項是有限的。另外,我無法真正看到你使用Vagrant爲Vagrant安裝插件。你基本上需要升級到更新的操作系統。也許嘗試安裝支持1.9.3的這個插件的最後一個版本 –

回答

0

至於我能讀那裏,你正在使用ruby 1.9.1和錯誤消息是,你至少需要ruby 2.0該插件。

嘗試將ruby更新到更新的版本。也可以嘗試使用像rbenv這樣的工具來管理多個ruby版本,以防將來的項目需要ruby 1.9.1

相關問題