I want to know how to update to the latest stable version of Ruby with Homebrew. I am not interested in using RVM. Thanks.
相关问题
- How to specify memcache server to Rack::Session::M
- Why am I getting a “C compiler cannot create execu
- reference to a method?
- ruby 1.9 wrong file encoding on windows
- Xcode debugger displays incorrect values for varia
相关文章
- 现在使用swift开发ios应用好还是swift?
- Visual Studio Code, MAC OS X, OmniSharp server is
- Ruby using wrong version of openssl
- xcode 4 garbage collection removed?
- Difference between Thread#run and Thread#wakeup?
- IntelliJ IDEA can't open projects or add SDK o
- how to call a active record named scope with a str
- Automator: How do I use the Choose from List actio
I would use
ruby-build
withrbenv
. The following lines install Ruby 2.6.1 and set it as your default Ruby version:brew upgrade ruby
Should pull latest version of the package and install it.
brew update
updates brew itself, not packages (formulas they call it)open terminal
\curl -sSL https://get.rvm.io | bash -s stable
restart terminal then
check ruby version it should be 2.4.2
Adding to the selected answer (as I haven't enough rep to add comment), one way to see the list of available versions (from ref) try:
To upgrade Ruby with rbenv: Per the rbenv README
brew upgrade rbenv ruby-build
rbenv install -l
rbenv install <selected version>