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
At this time (April 2014), Mac OS X Mavericks (10.9) is the current version, as is Ruby 2.1.1 and Rails 4.1. This article Install Ruby on Rails - Mac OS X Mavericks provides up-to-date installation instructions. – Daniel Kehoe Apr 21 '14 at 23:44. Ruby on Rails makes it much easier and more fun. It includes everything you need to build fantastic applications, and you can learn it with the support of our large, friendly community. Latest version — Rails 6.0.3.4 released October 7, 2020.
We have several tools on each major platform to install Ruby:
- 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.
Ruby On Rails Download Mac Mojave
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.
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.
Setting Up A Database
Rails ships with sqlite3 as the default database. Chances are you won't want to use it because it's stored as a simple file on disk. You'll probably want something more robust like MySQL or PostgreSQL.
There is a lot of documentation on both, so you can just pick one that seems like you'll be more comfortable with.
If you're new to Ruby on Rails or databases in general, I strongly recommend setting up PostgreSQL.
If you're coming from PHP, you may already be familiar with MySQL.
MySQL
You can install MySQL server and client from Homebrew:
Once this command is finished, it gives you a couple commands to run. Follow the instructions and run them:
By default the mysql user is
root
with no password.When you're finished, you can skip to the Final Steps.
PostgreSQL
You can install PostgreSQL server and client from Homebrew:
Ruby Mac Os
Once this command is finished, it gives you a couple commands to run. Follow the instructions and run them:
Ruby Install Mac
By default the postgresql user is your current OS X username with no password. For example, my OS X user is named
chris
so I can login to postgresql with that username.