Install Command Line Tools

  1. Install Ruby On Linux
  2. Ruby Mac Os Catalina
  3. Ruby Openssl Mac Os X
  4. Ruby For Mac Download

To install the command line tools to compile native extensions, open a terminal and run:

Apple bundles the Ruby programming language with OS X. However, the main caveat for using the bundled version, called the system Ruby, is that Apple bundles Ruby for it’s own use. Therefore, it’s best not to make changes to the system 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 the Installation page for details on using package management systems or third-party tools.

Install Ruby

Jekyll requires Ruby v2.5.0 or higher.macOS Catalina 10.15 ships with Ruby 2.6.3. Check your Ruby version using ruby -v.

If you’re running a previous version of macOS, you’ll have to install a newer version of Ruby.

With Homebrew

To run the latest Ruby version you need to install it through Homebrew.

Add the brew ruby path to your shell configuration:

Relaunch your terminal and check your Ruby setup:

You’re now running the current stable version of Ruby!

With rbenv

People often use rbenv to manage multipleRuby versions. This is very useful when you need to be able to run a given Ruby version on a project.

Restart your terminal to apply your changes.Next, you can install the Ruby version you want. Let’s install the latest stable version:

That’s it! Head over to rbenv command references to learn how to use different versions of Ruby in your projects.

Install Jekyll

Install Ruby On Linux

After installing Ruby, install Jekyll and Bundler.

Local Install

Install the bundler and jekyll gems:

Get your Ruby version:

Append your path file with the following, replacing the X.X with the first two digits of your Ruby version:

Check that GEM PATHS: points to your home directory:

Every time you update Ruby to a version in which the first two digits change, update your path to match.

Install ruby mac os

Ruby Mac Os Catalina

Global Install

We recommend not installing Ruby gems globally to avoid file permissions problems and using sudo.

On Mojave (10.14)

Because of SIP Protections in Mojave, run:

Ruby Openssl Mac Os X

Before Mojave (<10.14)

Run:

Troubleshooting

Ruby For Mac Os

Ruby For Mac Download

See Troubleshooting or ask for help on our forum.