Skip to content

Ruby - Dependencies

Install the following packages to set up your machine for Ruby development.

Install Dependencies

rbenv is the recommended choice for managing Ruby on a development machine.

It uses a simple plugin architecture, allowing you to drop in functionality, notably the ruby-build plugin that downloads and compiles various versions of Ruby.

Install the following dependencies required by ruby-build before proceeding.

ruby-build dependencies
sudo pacman -S \
    --needed \
    base-devel \
    rust libffi \
    libyaml \
    openssl \
    zlib

You can then install rbenv and ruby-build by following the official documentation.

Recommended

Use Basic Git Checkout method for rbenv and then to clone the ruby-build plugin.