Here you can get the latest Ruby distributions in your favorite flavor.The current stable version is 2.7.2.Please be sure to read Ruby’s License.
Ways of Installing Ruby
Ruby Openssl Mac Os X
Ruby For Mac Os X 10.10
I am reading the book Programming Ruby and am looking to upgrade the version of Ruby on my computer. I run Mac OS X Snow Leopard and doing ruby -v in the command line shows I am running Ruby 1.8.7. I installed MacPorts and ran the sudo port install ruby19 command but whenever I type ruby -v, it still shows Ruby 1.8.7.
We have several tools on each major platform to install Ruby:
Ruby For Mac Os X El Capitan
- Available for: Mac OS X v10.6.8 and later. Impact: Multiple vulnerabilities in Ruby. Description: Multiple vulnerabilities existed in Ruby versions prior to 2.0.0p645. These were addressed by updating Ruby to version 2.0.0p645.
- Jekyll on macOS Install Command Line Tools. To install the command line tools to compile native extensions, open a terminal and run.
- On Linux/UNIX, you can use the package management system of yourdistribution or third-party tools (rbenv and RVM).
- On macOS machines, you can use third-party tools (rbenv and RVM).
- On Windows machines, you can use RubyInstaller.
See the Installation page for details on usingpackage management systems or third-party tools.
Of course, you can also install Ruby from source on all major platforms.
Compiling Ruby — Source Code
Installing from the source code is a great solution for when you arecomfortable enough with your platform and perhaps need specific settingsfor your environment. It’s also a good solution in the event that thereare no other premade packages for your platform.
See the Installation page for details on buildingRuby from source. If you have an issue compiling Ruby, consider usingone of the third party tools mentioned above. They may help you.
- Stable releases:
- Ruby 2.7.2
sha256: 6e5706d0d4ee4e1e2f883db9d768586b4d06567debea353c796ec45e8321c3d4 - Ruby 2.6.6
sha256: 364b143def360bac1b74eb56ed60b1a0dca6439b00157ae11ff77d5cd2e92291
- Ruby 2.7.2
- Preview releases:
- Ruby 3.0.0-preview1
sha256: ce8bd7534e7ec2a870b24d2145ea20e9bbe5b2d76b7dfa1102dbee5785253105
- Ruby 3.0.0-preview1
- In security maintenance phase (will EOL soon!):
- Ruby 2.5.8
sha256: 6c0bdf07876c69811a9e7dc237c43d40b1cb6369f68e0e17953d7279b524ad9a
- Ruby 2.5.8
- Not maintained anymore (EOL):
- Ruby 2.4.10
sha256: 93d06711795bfb76dbe7e765e82cdff3ddf9d82eff2a1f24dead9bb506eaf2d0 - Ruby 2.3.8
sha256: b5016d61440e939045d4e22979e04708ed6c8e1c52e7edb2553cf40b73c59abf
- Ruby 2.4.10
- Snapshots:
- Stable Snapshot of ruby_2_7 branch:This is a tarball of the latest snapshot of the current
ruby_2_7
branch. - Stable Snapshot of ruby_2_6 branch:This is a tarball of the latest snapshot of the current
ruby_2_6
branch. - Stable Snapshot of ruby_2_5 branch:This is a tarball of the latest snapshot of the current
ruby_2_5
branch. - Nightly Snapshot:This is a tarball of whatever is in Git, made nightly.This may contain bugs or other issues, use at your own risk!
- Stable Snapshot of ruby_2_7 branch:This is a tarball of the latest snapshot of the current
For more information about specific releases, particularly older releasesor previews, see the Releases page.Information about the current maintenance status of the variousRuby branches can be found on the Branches page.
Ruby For Mac Os X
For information about the Ruby Subversion and Git repositories, see ourRuby Core page.
The Ruby source is available from a worldwide set ofMirror Sites.Please try to use a mirror that is near you.