I tried to build Ruby 3.0.0 released on 2020/12/25 on a clean Ubuntu using WSL of Windows.
● Hardware environment
● Software environment --Windows 10 Home (version 20H2 OS build 19042.685) --Ubuntu 20.04 LTS (on WSL)
--WSL environment construction (including Ubuntu application acquisition and account settings): Approximately 10 minutes --Ubuntu initial setting: about 10 minutes --Ruby source download: about 5 minutes --Ruby source build: about 90 minutes
Built according to Microsoft documentation. WSL Documentation> Quick Start> Install WSL and Update to WSL 2
I installed only the tools needed for the build.
$ sudo apt update
$ sudo apt install -y build-essential
I downloaded it from the official website and unzipped it.
Ruby 3.0.0
$ curl -O https://cache.ruby-lang.org/pub/ruby/3.0/ruby-3.0.0.tar.gz
$ tar -xvzf ruby-3.0.0.tar.gz
It took about 80 minutes to make and about 20 minutes to make install.
$ cd ruby-3.0.0
$ configure
$ make
$ make install
make took longer than expected. ..
Recommended Posts