I updated three of my boxes to the latest rubygems and chef (11.4.0) and now I’m getting the following missing package error:

chef-client

/usr/lib/ruby/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:106:in gem_original_require': no such file to load -- rubygems/format (LoadError) from /usr/lib/ruby/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:106:inrequire’
from /usr/lib64/ruby/gems/1.8/gems/chef-11.4.0/bin/…/lib/chef/provider/package/rubygems.rb:34
from /usr/lib/ruby/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:58:in gem_original_require' from /usr/lib/ruby/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:58:inrequire’
from /usr/lib64/ruby/gems/1.8/gems/chef-11.4.0/bin/…/lib/chef/providers.rb:60
from /usr/lib/ruby/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:58:in gem_original_require' from /usr/lib/ruby/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:58:inrequire’
from /usr/lib64/ruby/gems/1.8/gems/chef-11.4.0/bin/…/lib/chef.rb:25
from /usr/lib/ruby/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:58:in gem_original_require' from /usr/lib/ruby/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:58:inrequire’
from /usr/lib64/ruby/gems/1.8/gems/chef-11.4.0/bin/chef-client:23
from /usr/bin/chef-client:23:in `load’
from /usr/bin/chef-client:23

I updated three of my boxes to the latest rubygems and chef (11.4.0) and now I’m getting the following missing package error:

chef-client

/usr/lib/ruby/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:106:in gem_original_require': no such file to load -- rubygems/format (LoadError) from /usr/lib/ruby/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:106:inrequire’
from /usr/lib64/ruby/gems/1.8/gems/chef-11.4.0/bin/…/lib/chef/provider/package/rubygems.rb:34
from /usr/lib/ruby/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:58:in gem_original_require' from /usr/lib/ruby/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:58:inrequire’
from /usr/lib64/ruby/gems/1.8/gems/chef-11.4.0/bin/…/lib/chef/providers.rb:60
from /usr/lib/ruby/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:58:in gem_original_require' from /usr/lib/ruby/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:58:inrequire’
from /usr/lib64/ruby/gems/1.8/gems/chef-11.4.0/bin/…/lib/chef.rb:25
from /usr/lib/ruby/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:58:in gem_original_require' from /usr/lib/ruby/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:58:inrequire’
from /usr/lib64/ruby/gems/1.8/gems/chef-11.4.0/bin/chef-client:23
from /usr/bin/chef-client:23:in `load’
from /usr/bin/chef-client:23

I updated three of my boxes to the latest rubygems and chef (11.4.0) and now I’m getting the following missing package error:

chef-client

/usr/lib/ruby/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:106:in gem_original_require': no such file to load -- rubygems/format (LoadError) from /usr/lib/ruby/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:106:inrequire’
from /usr/lib64/ruby/gems/1.8/gems/chef-11.4.0/bin/…/lib/chef/provider/package/rubygems.rb:34
from /usr/lib/ruby/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:58:in gem_original_require' from /usr/lib/ruby/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:58:inrequire’
from /usr/lib64/ruby/gems/1.8/gems/chef-11.4.0/bin/…/lib/chef/providers.rb:60
from /usr/lib/ruby/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:58:in gem_original_require' from /usr/lib/ruby/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:58:inrequire’
from /usr/lib64/ruby/gems/1.8/gems/chef-11.4.0/bin/…/lib/chef.rb:25
from /usr/lib/ruby/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:58:in gem_original_require' from /usr/lib/ruby/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:58:inrequire’
from /usr/lib64/ruby/gems/1.8/gems/chef-11.4.0/bin/chef-client:23
from /usr/bin/chef-client:23:in `load’
from /usr/bin/chef-client:23

According to gem list rubygems-update -r -a, version 1.8.25 is the last one before 2.0.

To downgrade to that, do gem update --system 1.8.25. You can also use that command to upgrade from older rubygems without going all the way to 2.0 (assuming you’re not starting from a version of ruby gems that’s too old to have that feature–I don’t remember when it was added).

HTH,

–
Daniel DeLeo

On Tuesday, February 26, 2013 at 3:22 PM, Vincent Jorgensen wrote:

I do not need the latest! Whoops. Is there a way to go back to the last rubygems < 2.0 ?

I updated three of my boxes to the latest rubygems and chef (11.4.0) and now I’m getting the following missing package error:

chef-client

/usr/lib/ruby/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:106:in gem_original_require': no such file to load -- rubygems/format (LoadError) from /usr/lib/ruby/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:106:inrequire’
from /usr/lib64/ruby/gems/1.8/gems/chef-11.4.0/bin/…/lib/chef/provider/package/rubygems.rb:34
from /usr/lib/ruby/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:58:in gem_original_require' from /usr/lib/ruby/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:58:inrequire’
from /usr/lib64/ruby/gems/1.8/gems/chef-11.4.0/bin/…/lib/chef/providers.rb:60
from /usr/lib/ruby/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:58:in gem_original_require' from /usr/lib/ruby/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:58:inrequire’
from /usr/lib64/ruby/gems/1.8/gems/chef-11.4.0/bin/…/lib/chef.rb:25
from /usr/lib/ruby/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:58:in gem_original_require' from /usr/lib/ruby/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:58:inrequire’
from /usr/lib64/ruby/gems/1.8/gems/chef-11.4.0/bin/chef-client:23
from /usr/bin/chef-client:23:in `load’
from /usr/bin/chef-client:23

According to gem list rubygems-update -r -a, version 1.8.25 is the last one before 2.0.

To downgrade to that, do gem update --system 1.8.25. You can also use that command to upgrade from older rubygems without going all the way to 2.0 (assuming you’re not starting from a version of ruby gems that’s too old to have that feature–I don’t remember when it was added).

HTH,

–
Daniel DeLeo

On Tuesday, February 26, 2013 at 3:22 PM, Vincent Jorgensen wrote:

I do not need the latest! Whoops. Is there a way to go back to the last rubygems < 2.0 ?

I updated three of my boxes to the latest rubygems and chef (11.4.0) and now I’m getting the following missing package error:

chef-client

/usr/lib/ruby/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:106:in gem_original_require': no such file to load -- rubygems/format (LoadError) from /usr/lib/ruby/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:106:inrequire’
from /usr/lib64/ruby/gems/1.8/gems/chef-11.4.0/bin/…/lib/chef/provider/package/rubygems.rb:34
from /usr/lib/ruby/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:58:in gem_original_require' from /usr/lib/ruby/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:58:inrequire’
from /usr/lib64/ruby/gems/1.8/gems/chef-11.4.0/bin/…/lib/chef/providers.rb:60
from /usr/lib/ruby/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:58:in gem_original_require' from /usr/lib/ruby/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:58:inrequire’
from /usr/lib64/ruby/gems/1.8/gems/chef-11.4.0/bin/…/lib/chef.rb:25
from /usr/lib/ruby/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:58:in gem_original_require' from /usr/lib/ruby/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:58:inrequire’
from /usr/lib64/ruby/gems/1.8/gems/chef-11.4.0/bin/chef-client:23
from /usr/bin/chef-client:23:in `load’
from /usr/bin/chef-client:23