Sunday, July 7, 2024

command line – Two variations of ruby put in

It looks as if I’ve two variations of ruby put in. (3.3.0 and a pair of.6.10.210)

The way 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 are not 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/components.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 obtainable components 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 obtainable components with the identify "rubygems". Did you imply rubyfmt?
macOS supplies 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 % 

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles