(16)
https://qiita.com/cocoabreak/items/fd51b366cf18e2714240
apt -y update
apt -y install autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm3 libgdbm-dev
apt -y install git
git clone https://github.com/rbenv/rbenv.git /root/.rbenv
cd /root/.rbenv && src/configure && make -C src
vim /root/.profile
export PATH=/root/.rbenv/bin:$PATH
eval "$(rbenv init -)"
source /root/.profile
mkdir -p /root/.rbenv/plugins
git clone https://github.com/rbenv/ruby-build.git /root/.rbenv/plugins/ruby-build
rbenv install -l
rbenv install 2.6.0
rbenv global 2.6.0
rbenv rehash
ruby --version
(18)
apt -y update
apt -y install autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm-dev
apt -y install git
git clone https://github.com/rbenv/rbenv.git /root/.rbenv
cd /root/.rbenv && src/configure && make -C src
vim /root/.profile
export PATH=/root/.rbenv/bin:$PATH
eval "$(rbenv init -)"
source /root/.profile
mkdir -p /root/.rbenv/plugins
git clone https://github.com/rbenv/ruby-build.git /root/.rbenv/plugins/ruby-build
rbenv install -l
rbenv install 2.6.0
rbenv global 2.6.0
rbenv rehash
ruby --version
(9)
apt -y update
apt -y install autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm-dev
apt -y install git
git clone https://github.com/rbenv/rbenv.git /root/.rbenv
cd /root/.rbenv && src/configure && make -C src
vim /root/.profile
export PATH=/root/.rbenv/bin:$PATH
eval "$(rbenv init -)"
source /root/.profile
mkdir -p /root/.rbenv/plugins
git clone https://github.com/rbenv/ruby-build.git /root/.rbenv/plugins/ruby-build
rbenv install -l
rbenv install 2.6.0
rbenv global 2.6.0
rbenv rehash
ruby --version
(7)
https://qiita.com/jjjjjj/items/75a946fe84ca40b5d9a9
yum -y install git bzip2 gcc gcc-c++ openssl-devel readline-devel zlib-devel
yum -y install epel-release
yum -y install nodejs
git clone https://github.com/rbenv/rbenv.git /usr/local/rbenv
git clone https://github.com/rbenv/ruby-build.git /usr/local/rbenv/plugins/ruby-build
vim /etc/profile.d/rbenv.sh
export RBENV_ROOT=/usr/local/rbenv
export PATH=${RBENV_ROOT}/bin:$PATH
eval "$(rbenv init --no-rehash -)"
source /etc/profile.d/rbenv.sh
visudo
Defaults env_keep += "RBENV_ROOT"
Defaults secure_path = /sbin:/bin:/usr/sbin:/usr/bin:/usr/local/rbenv/bin:/usr/local/rbenv/shims
rbenv install -l
rbenv install 2.6.0
rbenv global 2.6.0
rbenv rehash
ruby --version
- Windows Server
(2012R2)
https://rubyinstaller.org/downloads/
ruby --version