Personal notes
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get install -y autoconf bison build-essential libssl-dev libyaml-dev libreadline-dev zlib1g zlib1g-dev imagemagick git
sudo apt-get install -y nodejs npm
sudo apt-get install -y sqlite3 libsqlite3-dev
sudo apt-get install -y libmariadb-dev
sudo apt-get install -y libmysqlclient-dev
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get update
sudo apt-get install yarn -y
git clone https://github.com/sstephenson/rbenv.git ~/.rbenv
echo '[ -f "$HOME/.profile" ] && source "$HOME/.profile"' >> ~/.bash_profile
echo '[ -f "$HOME/.bashrc" ] && source "$HOME/.bashrc"' >> ~/.bash_profile
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
source ~/.bash_profile
~/.rbenv/bin/rbenv init
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
source ~/.bash_profile
rbenv -v
mkdir -p "$(rbenv root)"/plugins
git clone https://github.com/sstephenson/ruby-build.git "$(rbenv root)"/plugins/ruby-build
rbenv install -l
rbenv install 2.6.6
rbenv global 2.6.6
ruby -v
sudo tee /etc/wsl.conf <<EOF >/dev/null
[automount]
options = "metadata"
EOF
~~echo 'export PATH="
(echo " PATH" | sed -r -e '"'"'s;:/mnt/[^:]+;;g'"'"')"' >> ~/.bash_profile~~ ~~source ~/.bash_profile~~However, if you do the above, the PATH such as VS Code will also be changed. .. ..
Reference
Insecure world writable dir ... warning on WSL Ubuntu console https://www.oiax.jp/books/insecure_world_writable_dir.html
gem install bundle
Recommended Posts