How to update Ruby with Homebrew?

前端 未结 5 2060
一生所求
一生所求 2020-12-22 18:27

I want to know how to update to the latest stable version of Ruby with Homebrew. I am not interested in using RVM. Thanks.

5条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-22 18:29

    I would use ruby-build with rbenv. The following lines install Ruby 2.7.2 and set it as your default Ruby version:

    $ brew update
    $ brew install ruby-build
    $ brew install rbenv
    
    $ rbenv install 2.7.2
    $ rbenv global 2.7.2
    

提交回复
热议问题