apt でインストールしたらやたら古かったのでメモ
環境
- Windows 11 Pro
- wsl 2.2.4.0
- Ubuntu 22.04.4 LTS
TODO
# rbenv and ruby
sudo apt-get install -y libssl-dev zlib1g-dev libyaml-dev
git clone --depth 1 https://github.com/rbenv/rbenv.git ~/.rbenv
echo 'eval "$(~/.rbenv/bin/rbenv init - bash)"' >> ~/.bashrc
. ~/.bashrc
git clone --depth 1 \
https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
rbenv install 3.3.1
rbenv global 3.3.1
gem update --system
gem update
gem cleanup
# npm and nodejs
curl -fsSL https://deb.nodesource.com/setup_20.x | \
sudo -E bash - && sudo apt-get install -y nodejs