Ruby2.7.3を入れる

プログラム

順番通りに実行すればOK。以上。

yum install -y git bzip2 gcc openssl-devel readline-devel zlib-devel make
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
export PATH=$HOME/.rbenv/bin:$PATH
eval "$(rbenv init -)"
mkdir -p "$(rbenv root)/plugins"
git clone https://github.com/rbenv/ruby-build.git "$(rbenv root)/plugins/ruby-build"
git clone https://github.com/rbenv/rbenv-default-gems.git "$(rbenv root)/plugins/rbenv-default-gems"
echo bundler > "$(rbenv root)/default-gems"
git clone https://github.com/rkh/rbenv-update.git "$(rbenv root)/plugins/rbenv-update"
rbenv install -v 2.7.3
rbenv global 2.7.3
rbenv rehash
ruby --version

コメント

タイトルとURLをコピーしました