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:in
require’
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:in
require’
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:in
require’
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:in
require’
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’ve confirmed that I have rubygems/format.rb
locate rubygems/format.rb
/usr/lib64/ruby/gems/1.8/gems/rubygems-update-1.8.24/lib/rubygems/format.rb
The question becomes, why isn’t chef able to find it?
Other specs that may or may not be helpful:
ib/ruby/site_ruby/1.8/rubygems
14:46 Tue Feb 26 # uname -a
Linux box.box 2.6.32-279.11.1.el6.x86_64 #1 SMP Tue Oct 16 15:57:10 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
lsb_release -a
LSB Version: :core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Distributor ID: CentOS
Description: CentOS release 6.3 (Final)
Release: 6.3
Codename: Final
Vincent Jorgensen
Operations Engineer @ Incentive Networks
650.226.4917 PST (GMT-0800)
On Tuesday, February 26, 2013 at 2:48 PM, Vincent Jorgensen wrote:
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:in
require'
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:in
require'
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:in
require'
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:in
require'
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've confirmed that I have rubygems/format.rb
locate rubygems/format.rb
/usr/lib64/ruby/gems/1.8/gems/rubygems-update-1.8.24/lib/rubygems/format.rb
The question becomes, why isn't chef able to find it?
Other specs that may or may not be helpful:
ib/ruby/site_ruby/1.8/rubygems
14:46 Tue Feb 26 # uname -a
Linux box.box 2.6.32-279.11.1.el6.x86_64 #1 SMP Tue Oct 16 15:57:10 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
lsb_release -a
LSB Version: :core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Distributor ID: CentOS
Description: CentOS release 6.3 (Final)
Release: 6.3
Codename: Final
Vincent Jorgensen
Operations Engineer @ Incentive Networks
650.226.4917 PST (GMT-0800)
The latest ruby gems is 2.0, which has breaking changes. If you really really need ruby gems 2.0, you can build from this branch: [CHEF-3933] Add support for Rubygems 2.0 by danielsdeleo · Pull Request #654 · chef/chef · GitHub
--
Daniel DeLeo
I do not need the latest! Whoops. Is there a way to go back to the last rubygems < 2.0 ?
Vincent Jorgensen
Operations Engineer @ Incentive Networks
650.226.4917 PST (GMT-0800)
On Feb 26, 2013, at 2:54 PM, Daniel DeLeo wrote:
On Tuesday, February 26, 2013 at 2:48 PM, Vincent Jorgensen wrote:
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:in
require'
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:in
require'
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:in
require'
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:in
require'
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've confirmed that I have rubygems/format.rb
locate rubygems/format.rb
/usr/lib64/ruby/gems/1.8/gems/rubygems-update-1.8.24/lib/rubygems/format.rb
The question becomes, why isn't chef able to find it?
Other specs that may or may not be helpful:
ib/ruby/site_ruby/1.8/rubygems
14:46 Tue Feb 26 # uname -a
Linux box.box 2.6.32-279.11.1.el6.x86_64 #1 SMP Tue Oct 16 15:57:10 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
lsb_release -a
LSB Version: :core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Distributor ID: CentOS
Description: CentOS release 6.3 (Final)
Release: 6.3
Codename: Final
Vincent Jorgensen
Operations Engineer @ Incentive Networks
650.226.4917 PST (GMT-0800)
The latest ruby gems is 2.0, which has breaking changes. If you really really need ruby gems 2.0, you can build from this branch: [CHEF-3933] Add support for Rubygems 2.0 by danielsdeleo · Pull Request #654 · chef/chef · GitHub
--
Daniel DeLeo
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 ?
Vincent Jorgensen
Operations Engineer @ Incentive Networks
650.226.4917 PST (GMT-0800)
On Feb 26, 2013, at 2:54 PM, Daniel DeLeo wrote:
On Tuesday, February 26, 2013 at 2:48 PM, Vincent Jorgensen wrote:
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:in
require'
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:in
require'
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:in
require'
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:in
require'
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've confirmed that I have rubygems/format.rb
locate rubygems/format.rb
/usr/lib64/ruby/gems/1.8/gems/rubygems-update-1.8.24/lib/rubygems/format.rb
The question becomes, why isn't chef able to find it?
Other specs that may or may not be helpful:
ib/ruby/site_ruby/1.8/rubygems
14:46 Tue Feb 26 # uname -a
Linux box.box 2.6.32-279.11.1.el6.x86_64 #1 SMP Tue Oct 16 15:57:10 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
lsb_release -a
LSB Version: :core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Distributor ID: CentOS
Description: CentOS release 6.3 (Final)
Release: 6.3
Codename: Final
Vincent Jorgensen
Operations Engineer @ Incentive Networks
650.226.4917 PST (GMT-0800)
The latest ruby gems is 2.0, which has breaking changes. If you really really need ruby gems 2.0, you can build from this branch: [CHEF-3933] Add support for Rubygems 2.0 by danielsdeleo · Pull Request #654 · chef/chef · GitHub
--
Daniel DeLeo
I tip my hat to you. Thanks.
Vincent Jorgensen
Operations Engineer @ Incentive Networks
650.226.4917 PST (GMT-0800)
On Feb 26, 2013, at 3:28 PM, Daniel DeLeo wrote:
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 ?
Vincent Jorgensen
Operations Engineer @ Incentive Networks
650.226.4917 PST (GMT-0800)
On Feb 26, 2013, at 2:54 PM, Daniel DeLeo wrote:
On Tuesday, February 26, 2013 at 2:48 PM, Vincent Jorgensen wrote:
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:in
require'
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:in
require'
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:in
require'
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:in
require'
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've confirmed that I have rubygems/format.rb
locate rubygems/format.rb
/usr/lib64/ruby/gems/1.8/gems/rubygems-update-1.8.24/lib/rubygems/format.rb
The question becomes, why isn't chef able to find it?
Other specs that may or may not be helpful:
ib/ruby/site_ruby/1.8/rubygems
14:46 Tue Feb 26 # uname -a
Linux box.box 2.6.32-279.11.1.el6.x86_64 #1 SMP Tue Oct 16 15:57:10 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
lsb_release -a
LSB Version: :core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Distributor ID: CentOS
Description: CentOS release 6.3 (Final)
Release: 6.3
Codename: Final
Vincent Jorgensen
Operations Engineer @ Incentive Networks
650.226.4917 PST (GMT-0800)
The latest ruby gems is 2.0, which has breaking changes. If you really really need ruby gems 2.0, you can build from this branch: [CHEF-3933] Add support for Rubygems 2.0 by danielsdeleo · Pull Request #654 · chef/chef · GitHub
--
Daniel DeLeo