Skip to content
Ryan Parman edited this page Nov 3, 2024 · 2 revisions

Ruby is a dynamic, open source programming language with a focus on simplicity and productivity. It has an elegant syntax that is natural to read and easy to write. It came to popularity with the release of the Rails framework.

brew install ruby

Version management

Any of these approaches are valid.

Package managers

RubyGems allows you to easily download, install, and use ruby software packages on your system. The software package is called a “gem” which contains a packaged Ruby application or library.

Unless you want it, I would recommend NOT installing gem documentation as it can speed-up your installation.

echo 'gem: --no-document' >> ~/.gemrc

Update RubyGems itself, as well as any installed gems.

Caution

There is a known conflict with having the binutils package installed via Homebrew.

See instructions for temporary removal…

To see if the binutils package is installed, run the following command:

brew list | grep -E "^binutils$" 1>/dev/null && echo "installed" || echo "not installed"
  • If the result is not installed, then there is nothing to do. Carry on.

  • If the result is installed, you will need to (temporarily) uninstall binutils. (brew unlink may not work.)

    brew uninstall binutils
    
    which ar # MUST be /usr/bin/ar
gem update --system
gem update
# Add dependencies
gem install rake rails

# Install dependencies
gem install