.png)
CentOS 7에 Ruby 3.0 설치(SCL)
소개
Software Collection (SCL)을 사용하여 CentOS7에 Ruby 3.0 설치
참고 : Quick Start — Software Collections
지원
본 방법으로 도입한 경우, Red Hat Software Collections Product Life Cycle - Red Hat Customer Portal 보다, 2024-06이 EOL이라고 생각된다.
그 이후에 보고된 취약성이나 결함에 대한 대응은 실시되지 않을 가능성이 있다.
LOG
리포지토리 등록
# yum install -y centos-release-scl
설치
# cat /etc/redhat-release
CentOS Linux release 7.9.2009 (Core)
# yum install -y rh-ruby30 which
# scl enable rh-ruby30 bash
... 略
각종 확인
# which ruby
/opt/rh/rh-ruby30/root/usr/bin/ruby
# ruby -v
ruby 3.0.1p64 (2021-04-05 revision 0fb782ee38) [x86_64-linux]
# yum info rh-ruby30
Loaded plugins: fastestmirror, ovl
Loading mirror speeds from cached hostfile
* base: ftp.nara.wide.ad.jp
* centos-sclo-rh: download.nus.edu.sg
* centos-sclo-sclo: ftp.nara.wide.ad.jp
* extras: ftp.nara.wide.ad.jp
* updates: ftp.nara.wide.ad.jp
Installed Packages
Name : rh-ruby30
Arch : x86_64
Version : 3.7
Release : 2.el7
Size : 0.0
Repo : installed
From repo : centos-sclo-rh
Summary : Package that installs rh-ruby30
License : GPLv2+
Description : This is the main package for rh-ruby30 Software Collection.
# yum install -y centos-release-scl
# cat /etc/redhat-release
CentOS Linux release 7.9.2009 (Core)
# yum install -y rh-ruby30 which
# scl enable rh-ruby30 bash
... 略
# which ruby
/opt/rh/rh-ruby30/root/usr/bin/ruby
# ruby -v
ruby 3.0.1p64 (2021-04-05 revision 0fb782ee38) [x86_64-linux]
# yum info rh-ruby30
Loaded plugins: fastestmirror, ovl
Loading mirror speeds from cached hostfile
* base: ftp.nara.wide.ad.jp
* centos-sclo-rh: download.nus.edu.sg
* centos-sclo-sclo: ftp.nara.wide.ad.jp
* extras: ftp.nara.wide.ad.jp
* updates: ftp.nara.wide.ad.jp
Installed Packages
Name : rh-ruby30
Arch : x86_64
Version : 3.7
Release : 2.el7
Size : 0.0
Repo : installed
From repo : centos-sclo-rh
Summary : Package that installs rh-ruby30
License : GPLv2+
Description : This is the main package for rh-ruby30 Software Collection.