I tried to build Ruby 3.0.0 from source

I tried to build Ruby 3.0.0 released on 2020/12/25 on a clean Ubuntu using WSL of Windows.

environment

● Hardware environment

● Software environment --Windows 10 Home (version 20H2 OS build 19042.685) --Ubuntu 20.04 LTS (on WSL)

Time required (roughly)

--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

procedure

WSL environment construction (including Ubuntu application acquisition and account settings)

Built according to Microsoft documentation. WSL Documentation> Quick Start> Install WSL and Update to WSL 2

Ubuntu initial settings

I installed only the tools needed for the build. $ sudo apt update $ sudo apt install -y build-essential

Ruby source download

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

Ruby source build

It took about 80 minutes to make and about 20 minutes to make install. $ cd ruby-3.0.0 $ configure $ make $ make install

Summary

make took longer than expected. ..

Recommended Posts

I tried to build Ruby 3.0.0 from source
I tried to build AdoptOpenjdk 11 on CentOS 7
I tried to generate a C language program source from cURL
From Java to Ruby !!
[Rails] I tried to raise the Rails version from 5.0 to 5.2
I tried to build AdoptOpenJDK 8 (Addition: Amazon Corretto 8)
[Ruby basics] I tried to learn modules (Chapter 1)
I tried to build Micra mackerel in 1 hour!
I tried DI with Ruby
05. I tried to stub the source of Spring Boot
I tried to get the distance from the address string to the nearest station with ruby
What I got from continuing to develop open source
I tried source code analysis
I tried to verify yum-cron
I tried Jets (ruby serverless)
I tried to build an environment using Docker (beginner)
I tried to make an application in 3 months from inexperienced
[JDBC] I tried to access the SQLite3 database from Java.
What I did in the version upgrade from Ruby 2.5.2 to 2.7.1
I tried to summarize the basic grammar of Ruby briefly
I tried to build the environment little by little using docker
I tried to automate LibreOffice Calc with Ruby + PyCall.rb (Ubuntu 18.04)
I tried to build the environment of WSL2 + Docker + VSCode
I tried upgrading from CentOS 6.5 to CentOS 7 with the upgrade tool
I tried to chew C # (indexer)
I tried to summarize iOS 14 support
I tried to interact with Java
I tried to explain the method
Introduction to Ruby (from other languages)
I tried to summarize Java learning (1)
I tried to understand nil guard
I tried to summarize Java 8 now
I tried to chew C # (polymorphism: polymorphism)
I tried to explain Active Hash
I tried to solve the problem of "multi-stage selection" with Ruby
I tried to build the environment of PlantUML Server with Docker
I tried to write code like a type declaration in Ruby
[Ruby] Tonight, I tried to summarize the loop processing [times, break ...]
I tried to reimplement Ruby Float (arg, exception: true) with builtin
I tried to make Numeron which is not good in Ruby
I tried to solve the paiza campaign problem "Challenge from Kaito 813"
I tried to build a laravel operating environment while remembering Docker
I tried to create an API to get data from a spreadsheet in Ruby (with service account)
I tried a calendar problem in Ruby
I tried to summarize the methods used
I tried to introduce CircleCI 2.0 to Rails app
I tried migrating Processing to VS Code
I tried using UICollectionViewListCell added from Xcode12.
[Ruby] From the basics to the inject method
I tried to solve AOJ's Binary Search
I tried to implement the Iterator pattern
[Java] Flow from source code to execution
I tried to summarize the Stream API
What is Docker? I tried to summarize
I tried to use Selenium like JQuery
I tried to touch JavaScript Part.2 Object-oriented
I tried to implement ModanShogi with Kinx
From terminal to Ruby (standard input / output)
I tried to make a parent class of a value object in Ruby
[Ruby] I tried to diet the if statement code with the ternary operator
I tried to build a Firebase application development environment with Docker in 2020