Search code examples
rubyapple-m1rbenv

Mac M1 rbenv and ruby -v do not match


Thoughs as to why on an Apple M1

rbenv lists:

 rbenv versions
  system
  2.7.6
* 3.1.2 (set by /Users/xxxxxx/.rbenv/version)

and ruby -v shows:

ruby 2.6.10p210 (2022-04-12 revision 67958) [universal.arm64e-darwin21

Solution

  • Enter this command in your terminal:

    eval "$(rbenv init - zsh)"