Skip to content

Instructions out of date for RHEL 8/9 #2437

@mcandre

Description

@mcandre

When I try to install Ruby on RHEL (8/9), then yum and dnf note that there is no package called libyaml-devel, and that the version of GCC cited no longer exists.

Let's remove the -6 version suffix entirely from the GCC package, for maintainability with future OS versions that will grow this number over time.

In recent versions of RHEL, the libyaml-devel package is hidden by default. RHEL users will need to explicitly enable some package groups:

# RHEL 8 based distros:
dnf config-manager --set-enabled powertools

# RHEL 9 based distros:
dnf config-manager --set-enabled crb

dnf install libyaml-devel

Per rvm/rvm#5288 (comment)

For comparison, RVM uses Ruby's built-in libyaml implementation:

rvm/rvm#2998 (comment)

Ruby is one of the more complicated programming languages to install. Would be nice to have a tarball of pre-compiled binaries, independent of package management install media, in order to provide a dead simple way to get Ruby in contexts like ephemeral CI/CD environments and Docker FROM scratch images.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions