Install Ruby For Mac Os X

We have several tools on each major platform to install Ruby: On Linux/UNIX, you can use the package management system of your distribution 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 full list on ruby-lang.org.

  1. Install Ruby For Mac Os X 10 13 Download
  2. Mac Os Install Disc Download
  3. Install Ruby For Mac Os X High Sierra
  4. Install Ruby For Mac Os X El Capitan
  5. Mac Os Installer For Pc
  6. Install Ruby For Mac Os X 10 11

Install Ruby For Mac Os X 10 13 Download

I previously posted about how to upgrade your ruby environment for OS X Mavericks: https://coderwall.com/p/5awmcq. I was helping a friend update his environment using the same steps, but we kept running into issues building gems with native extensions.

This was apparently due to a conflict between RVM (ruby version manager) and the installed version of GCC.

Mac Os Install Disc Download

After a lot of dead ends attempting to get the gem bundle to install, I eventually stumbled on this SO question: http://stackoverflow.com/questions/15204141/adding-usr-bin-gcc-4-2-to-path-installing-ruby.

InstallerInstall ruby mac os

Install Ruby For Mac Os X High Sierra

The only answer (at time of writing) was to run:

This spills out a ton of useful information about the rvm config. In the case of the machine I was working on, there were a variety of things missing for rvm to successfully install ruby and compile gems.

Install Ruby For Mac Os X El Capitan

First I removed the existing version of ruby:

Then followed the detailed instructions returned by running rvm requirements. In my case:

Mac Os Installer For Pc

Reopen your terminal windows. Then install gcc-4.2:

Further information: http://stackoverflow.com/questions/8032824/cant-install-ruby-under-lion-with-rvm-gcc-issues

Install Ruby For Mac Os X 10 11

After running these steps, ruby was installed cleanly and bundler was able to install gems with native extensions. There are many questions on SO and various fixes recommended, but these were the steps that worked for me.