I'm having a bit of trouble getting Ruby properly upgraded to 2.3.0 on my macbook. I followed the instructions here: https://gorails.com/setup/osx/10.11-el-capitan
However, I still can't install chef-zero (which is the reason I had to upgrade), and my Gem "classpath" still seems to be pointing at the old Ruby version:
amencke@offplantever-lm ~/d/chef-repo> rbenv local
2.3.0
amencke@offplantever-lm ~/d/chef-repo> rbenv global
2.3.0
amencke@offplantever-lm ~/d/chef-repo> ruby -v
ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-darwin14]
Seems OK so far...
amencke@offplantever-lm ~/d/chef-repo> gem environment
RubyGems Environment:
- RUBYGEMS VERSION: 2.3.0
- RUBY VERSION: 2.0.0 (2014-05-08 patchlevel 481) [universal.x86_64-darwin14]
- INSTALLATION DIRECTORY: /Library/Ruby/Gems/2.0.0
- RUBY EXECUTABLE: /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby
- EXECUTABLE DIRECTORY: /usr/bin
- SPEC CACHE DIRECTORY: /Users/amencke/.gem/specs
- SYSTEM CONFIGURATION DIRECTORY: /Library/Ruby/Site
- RUBYGEMS PLATFORMS:
- ruby
- universal-darwin-14
- GEM PATHS:
- /Library/Ruby/Gems/2.0.0
- /Users/amencke/.gem/ruby/2.0.0
- /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/gems/2.0.0
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- https://rubygems.org/
- SHELL PATH:
- /usr/local/bin
- /usr/bin
- /bin
- /usr/sbin
- /sbin
amencke@offplantever-lm ~/d/chef-repo>
And if I try to install chef-zero:
amencke@offplantever-lm ~/d/chef-repo> sudo gem install chef-zero
Password:
ERROR: Error installing chef-zero:
chef-zero requires Ruby version >= 2.1.0.
amencke@offplantever-lm ~/d/chef-repo>
Any ideas? I'm not particularly experienced with Ruby at all (or creating dev environments on OSX) - a point in the right direction would be much appreciated!