如下所示:
$chef-client --version /opt/chef/embedded/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:774:in `block in activate_dependencies': can't satisfy 'mime-types (~> 1.16)', already activated 'mime-types-2.0' (Gem::LoadError) from /opt/chef/embedded/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:766:in `each' from /opt/chef/embedded/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:766:in `activate_dependencies' from /opt/chef/embedded/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:750:in `activate' from /opt/chef/embedded/lib/ruby/site_ruby/1.9.1/rubygems.rb:1232:in `gem' from /opt/chef/embedded/bin/chef-client:22:in `'
这意味着我应该重新安装ruby?还是更新它?应该使用哪些命令?
答案 0 :(得分:0)
我猜你是通过rubygems安装了Chef。它需要 mime-types~> 1.16 ,但您已安装2.0。您应该将其卸载并安装正确的版本。
gem uninstall mime-types
gem install mime-types -v 1.16