LoginSignup
0
3

More than 3 years have passed since last update.

CentOS 7にRuby 2.7をインストール(SCL)

Last updated at Posted at 2020-06-24

はじめに

Software Collection(SCL)を利用してCentOS7にRuby 2.7をインストール
参考:Quick Start — Software Collections

サポート

本手法で導入した場合、Red Hat Software Collections Product Life Cycle - Red Hat Customer Portalより、2023-05がEOLだと思われる。
それ以降に報告された脆弱性や不具合への対応は実施されない可能性がある。

LOG

レポジトリ登録

# yum install -y centos-release-scl

インストール

# cat /etc/redhat-release
CentOS Linux release 7.8.2003 (Core)

# yum install -y rh-ruby27 which
# scl enable rh-ruby27 bash
... 略

各種確認

# which ruby
/opt/rh/rh-ruby27/root/usr/bin/ruby

# ruby -v
ruby 2.7.1p83 (2020-03-31 revision a0c7c23c9c) [x86_64-linux]

# yum info rh-ruby27
Loaded plugins: fastestmirror, ovl
Loading mirror speeds from cached hostfile
 * base: ty1.mirror.newmediaexpress.com
 * centos-sclo-rh: ty1.mirror.newmediaexpress.com
 * centos-sclo-sclo: ty1.mirror.newmediaexpress.com
 * extras: ty1.mirror.newmediaexpress.com
 * updates: ty1.mirror.newmediaexpress.com
Installed Packages
Name        : rh-ruby27
Arch        : x86_64
Version     : 2.7
Release     : 2.el7
Size        : 0.0
Repo        : installed
From repo   : centos-sclo-rh
Summary     : Package that installs rh-ruby27
License     : GPLv2+
Description : This is the main package for rh-ruby27 Software Collection.
0
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
3