简体   繁体   中英

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

Enter this command in your termimal:

eval "$(rbenv init - zsh)"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM