I tried to build an environment of dramatically evolved Ruby 3 and Rails 6.1. I want to make it a development environment for everyday use, so The OS is "Ubuntu desktop 20.04.1 LTS remix Japanese version".
$ sudo apt update -y
$ sudo apt upgrade -y
$ sudo apt-get -y install git curl g++ make libyaml-dev libxml2-dev libxslt-dev sqlite3 libsqlite3-dev nodejs npm
$ sudo apt install build-essential -y
$ sudo apt install -y libssl-dev libreadline-dev zlib1g-dev
$ git config --global user.name <user name>
$ git config --global user.email <email address>
$Install rbenv (package management tool).
$ git clone https://github.com/sstephenson/rbenv.git ~/.rbenv
$ echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
$ echo 'eval "$(rbenv init -)"' >> ~/.bashrc
$ exec $SHELL -l
$ ruby-Install build.
$ git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
$ rbenv install 3.0.0
$ rbenv global 3.0.0
$ sudo apt install curl
$ gem install -v 6.1.0 rails
Until now, I've only used Ruby on Rails 3 because of my work. I would like to try Ruby3 performance and Webpacker supported by Rails 5.1 in this environment.
Recommended Posts