I have a chef 11.4.4 with ruby 1.9.1. I want to install berkshelf, but that requires ruby 1.9.2 or later. I installed ruby 2.0.0-p247 (latest stable) with rvm. When I run the knife command, I get ...
# knife help /opt/chef/embedded/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': Could not find chef (>= 0) amongst [rake-10.1.0, rvm-1.11.3.8] (Gem::LoadError) from /opt/chef/embedded/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:256:in `to_spec' from /opt/chef/embedded/lib/ruby/site_ruby/1.9.1/rubygems.rb:1231:in `gem' from /usr/bin/knife:22:in `<main>'
If I bring it back to the system version, which is the ruby version built in with the chef, it works again.
# rvm use system Now using system ruby.
I was looking for ways to upgrade ruby to 2.0.0x for the chef, but no luck. I like to switch easily to ruby versions. It would be great if the chef could do the same, but just make it work with the latest stable version or even version 1.9.2 would be great. Thanks!
source share