It looks like following:
$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 `'
It is mean that I should reinstall ruby?or updated it? What kinds of commands should be used?
yum/rpm
(RHEL based) ORaptitude/dpkg
(ubuntu based) commands to get rid of existing chef-client binaries. No, dont do anything to ruby. In all likelihood, if it is embedded one, then it will get uninstalled along with chef-client. - slayedbylucifer