# gem update
gem updateUpdating installed gemsUpdating bigdecimalERROR: Error installing
할경우 위와 같이 에러가 발생 한다면 ruby 버전이 낮아서 그렇다 버전을 먼저 올려주자.
# curl -sSL https://rvm.io/pkuczynski.asc | gpg2 --import -
# curl -sSL https://get.rvm.io | bash -s stable
# source /etc/profile.d/rvm.sh
# rvm reload
RVM reloaded!
# rvm list known
설치 버전 확인
# MRI Rubies
[ruby-]1.8.6[-p420]
[ruby-]1.8.7[-head] # security released on head
[ruby-]1.9.1[-p431]
[ruby-]1.9.2[-p330]
[ruby-]1.9.3[-p551]
[ruby-]2.0.0[-p648]
[ruby-]2.1[.10]
[ruby-]2.2[.10]
[ruby-]2.3[.8]
[ruby-]2.4[.10]
[ruby-]2.5[.8]
[ruby-]2.6[.6]
[ruby-]2.7[.2]
[ruby-]3[.0.0]
ruby-head
# for forks use: rvm install ruby-head-<name> --url https://github.com/github/ruby.git --branch 2.2
# JRuby
jruby-1.6[.8]
jruby-1.7[.27]
jruby-9.1[.17.0]
jruby[-9.2.14.0]
jruby-head
# Rubinius
rbx-1[.4.3]
rbx-2.3[.0]
rbx-2.4[.1]
rbx-2[.5.8]
rbx-3[.107]
rbx-4[.20]
rbx-5[.0]
rbx-head
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# rvm requirements run
Checking requirements for centos.
Requirements installation successful.
최소 버전 요구가 2.7 이상이라 ruby 2.7 설치
# rvm install 2.7
Searching for binary rubies, this might take some time.
Found remote file https://rvm_io.global.ssl.fastly.net/binaries/centos/7/x86_64/ruby-2.7.2.tar.bz2
Checking requirements for centos.
Requirements installation successful.
ruby-2.7.2 - #configure
ruby-2.7.2 - #download
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 18.3M 100 18.3M 0 0 2530k 0 0:00:07 0:00:07 --:--:-- 2969k
ruby-2.7.2 - #validate archive
ruby-2.7.2 - #extract
ruby-2.7.2 - #validate binary
ruby-2.7.2 - #setup
ruby-2.7.2 - #gemset created /usr/local/rvm/gems/ruby-2.7.2@global
ruby-2.7.2 - #importing gemset /usr/local/rvm/gemsets/global.gems..................................
ruby-2.7.2 - #generating global wrappers........
ruby-2.7.2 - #gemset created /usr/local/rvm/gems/ruby-2.7.2
ruby-2.7.2 - #importing gemsetfile /usr/local/rvm/gemsets/default.gems evaluated to empty gem list
ruby-2.7.2 - #generating default wrappers........
설치가 끝나고
업데이트가 정상적으로 된다.
Fetching bundler-2.5.14.gem
ERROR: Error installing bundler:
There are no versions of bundler (= 2.5.14) compatible with your Ruby & RubyGems
bundler requires Ruby version >= 3.0.0. The current ruby version is 2.7.2.137.
하지만 몇몇 버전은 ruby 3.0 으로 올려야 설치 되는것들도 있다. 참고하자.