terrywang / vagrantboxes

Handcrafted Arch Linux Vagrant base box with :heart:
250 stars 29 forks source link

Chef 11.4.4 issue with Ruby 2.0.0-p195 (rubygems 2.0) #2

Closed terrywang closed 11 years ago

terrywang commented 11 years ago

Issue: The oracle64 and oracle59 boxes have Ruby 2.0.0-p195 installed, which has rubygems 2.0.x, causing chef-solo runs to fail.

$ chef-solo -v
/home/terry/.rbenv/versions/2.0.0-p195/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require': cannot load such file -- rubygems/format (LoadError)

Cause: Chef CHEF-3933

Workaround: Downgrade rubygems to 1.8.25 gem update --system 1.8.25

terrywang commented 11 years ago

It turned out to be neither Chef 11.4.4 nor Ruby 2.0.0's fault, but rubygems 2.0.x;-)

Switched to Ruby 1.9.3p-448 for both the oracle64 and oracle59 base boxes, issue fixed.

Close.

EOF