It looks as if I’ve two variations of ruby put in. (3.3.0 and a pair of.6.10.210)
Methods to repair that?
peter@mac ios % sudo gem replace --system
Password:
Updating rubygems-update
Fetching rubygems-update-3.5.6.gem
ERROR: Error putting in rubygems-update:
There aren't any variations of rubygems-update (= 3.5.6) suitable together with your Ruby & RubyGems
rubygems-update requires Ruby model >= 3.0.0. The present ruby model is 2.6.10.210.
ERROR: Whereas executing gem ... (NoMethodError)
undefined methodology `model' for nil:NilClass
peter@mac ios % brew set up ruby
==> Downloading https://formulae.brew.sh/api/system.jws.json
################################################################################################################################################################################################################################# 100.0%
==> Downloading https://formulae.brew.sh/api/cask.jws.json
################################################################################################################################################################################################################################# 100.0%
Warning: ruby 3.3.0 is already put in and up-to-date.
To reinstall 3.3.0, run:
brew reinstall ruby
peter@mac ios % brew set up rubygems-update
Warning: No out there system with the identify "rubygems-update".
==> Looking for equally named formulae and casks...
Error: No formulae or casks discovered for rubygems-update.
peter@mac ios % brew set up rubygems
Warning: No out there system with the identify "rubygems". Did you imply rubyfmt?
macOS gives gem as a part of Ruby. To put in a more recent model:
brew set up ruby
peter@mac ios % brew improve ruby
Warning: ruby 3.3.0 already put in
peter@mac ios %