Ruby

sudo apt install git libssl-dev libreadline-dev
git clone -b v1.2.0 https://github.com/rbenv/rbenv.git $HOME/.rbenv
mkdir $HOME/.rbenv/plugins
git clone -b v20220630 https://github.com/rbenv/ruby-build.git $HOME/.rbenv/plugins/ruby-build
cd ~/.rbenv && src/configure && make -C src
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
logout
ssh pi@<XXX>
rbenv install -l
MAKEOPTS=-j1 rbenv install <XXX>
rbenv global <XXX>