ubuntu@ubuntu-VirtualBox:~$ knife cookbook upload environment -E development
/usr/local/lib/ruby/2.0.0/rubygems/dependency.rb:296:in to_specs': Could not find 'chef' (>= 0) among 8 total gem(s) (Gem::LoadError) from /usr/local/lib/ruby/2.0.0/rubygems/dependency.rb:307:into_spec’
from /usr/local/lib/ruby/2.0.0/rubygems/core_ext/kernel_gem.rb:47:in gem' from /usr/local/bin/knife:22:in’
How did you originally install Chef? Did you use rubygems or an Omnibus
package?
What ruby is saying is that you haven't installed Chef for Ruby 2.0 yet.
The gems for Ruby 2.0.0 are going to be segregated from the Ruby 1.9 gems.
If you've installed via Rubygems before you can simply run a gem install chef to get going again.
ubuntu@ubuntu-VirtualBox:~$ knife cookbook upload environment -E
development
/usr/local/lib/ruby/2.0.0/rubygems/dependency.rb:296:in to_specs': Could not find 'chef' (>= 0) among 8 total gem(s) (Gem::LoadError) from /usr/local/lib/ruby/2.0.0/rubygems/dependency.rb:307:in to_spec'
from /usr/local/lib/ruby/2.0.0/rubygems/core_ext/kernel_gem.rb:47:in gem' from /usr/local/bin/knife:22:in '
--
Stephen Delano
Software Development Engineer
Opscode, Inc.
1008 Western Avenue
Suite 601
Seattle, WA 98104
How did you originally install Chef? Did you use rubygems or an Omnibus
package?
What ruby is saying is that you haven't installed Chef for Ruby 2.0 yet.
The gems for Ruby 2.0.0 are going to be segregated from the Ruby 1.9 gems.
If you've installed via Rubygems before you can simply run a gem install chef to get going again.
ubuntu@ubuntu-VirtualBox:~$ knife cookbook upload environment -E
development
/usr/local/lib/ruby/2.0.0/rubygems/dependency.rb:296:in to_specs': Could not find 'chef' (>= 0) among 8 total gem(s) (Gem::LoadError) from /usr/local/lib/ruby/2.0.0/rubygems/dependency.rb:307:in to_spec'
from /usr/local/lib/ruby/2.0.0/rubygems/core_ext/kernel_gem.rb:47:in gem' from /usr/local/bin/knife:22:in '
--
Stephen Delano
Software Development Engineer
Opscode, Inc.
1008 Western Avenue
Suite 601
Seattle, WA 98104
It looks like you've got Chef installed via Omnibus, so let's try to get to
the bottom of why knife is trying to run from Rubygems and not the embedded
knife. Can you post the output of the following commands?
How did you originally install Chef? Did you use rubygems or an Omnibus
package?
What ruby is saying is that you haven't installed Chef for Ruby 2.0 yet.
The gems for Ruby 2.0.0 are going to be segregated from the Ruby 1.9 gems.
If you've installed via Rubygems before you can simply run a gem install chef to get going again.
ubuntu@ubuntu-VirtualBox:~$ knife cookbook upload environment -E
development
/usr/local/lib/ruby/2.0.0/rubygems/dependency.rb:296:in to_specs': Could not find 'chef' (>= 0) among 8 total gem(s) (Gem::LoadError) from /usr/local/lib/ruby/2.0.0/rubygems/dependency.rb:307:in to_spec'
from /usr/local/lib/ruby/2.0.0/rubygems/core_ext/kernel_gem.rb:47:in gem' from /usr/local/bin/knife:22:in '
--
Stephen Delano
Software Development Engineer
Opscode, Inc.
1008 Western Avenue
Suite 601
Seattle, WA 98104
--
Stephen Delano
Software Development Engineer
Opscode, Inc.
1008 Western Avenue
Suite 601
Seattle, WA 98104
It looks like you've got Chef installed via Omnibus, so let's try to get
to the bottom of why knife is trying to run from Rubygems and not the
embedded knife. Can you post the output of the following commands?
How did you originally install Chef? Did you use rubygems or an Omnibus
package?
What ruby is saying is that you haven't installed Chef for Ruby 2.0 yet.
The gems for Ruby 2.0.0 are going to be segregated from the Ruby 1.9 gems.
If you've installed via Rubygems before you can simply run a gem install chef to get going again.
ubuntu@ubuntu-VirtualBox:~$ knife cookbook upload environment -E
development
/usr/local/lib/ruby/2.0.0/rubygems/dependency.rb:296:in to_specs': Could not find 'chef' (>= 0) among 8 total gem(s) (Gem::LoadError) from /usr/local/lib/ruby/2.0.0/rubygems/dependency.rb:307:in to_spec'
from
/usr/local/lib/ruby/2.0.0/rubygems/core_ext/kernel_gem.rb:47:in gem' from /usr/local/bin/knife:22:in '
--
Stephen Delano
Software Development Engineer
Opscode, Inc.
1008 Western Avenue
Suite 601
Seattle, WA 98104
--
Stephen Delano
Software Development Engineer
Opscode, Inc.
1008 Western Avenue
Suite 601
Seattle, WA 98104