Install Ruby 3.0.0 with asdf

Premise

It is assumed that asdf has already been installed.

shell


asdf plugin-add ruby https://github.com/asdf-vm/asdf-ruby.git

problem

Even if I try to execute the asdf list-all ruby command It seems that only 3.0.0-rc1 is listed yet. (As of December 26, 2020)

shell


..
2.7.2
3.0.0-dev
3.0.0-preview1
3.0.0-preview2
3.0.0-rc1
artichoke-dev
jruby-1.5.6
jruby-1.6.3
..

Solution

Specify the build version with the following command and install.

shell


ASDF_RUBY_BUILD_VERSION=v20201225 asdf install ruby 3.0.0

Verification

shell


#Confirm installation
asdf list ruby
  3.0.0

#Globally designated&shim regeneration
asdf global ruby 3.0.0
asdf reshim ruby


#Shell restart or reload

#Version confirmation
ruby -v
ruby 2.6.3p62 (2019-04-16 revision 67580) [universal.x86_64-darwin20]

#Confirmation of substance
where ruby
/Users/username/.asdf/shims/ruby

asdf which ruby
/Users/username/.asdf/installs/ruby/3.0.0/bin/ruby

Successfully installed: cat2:


Source: https://github.com/asdf-vm/asdf-ruby https://github.com/asdf-vm/asdf-ruby/pull/192 https://asdf-vm.com/#/core-commands

Recommended Posts

Install Ruby 3.0.0 with asdf
Install Ruby on MSYS2 with pacman
Install ruby on Ubuntu 20.04 with rbenv
Install java with Homebrew
Install Java with Ansible
Install OpenJDK8 with RPM
Install Ruby on Ubuntu 20.04
Install Gradle with ubuntu16.04
Getting Started with Ruby
11th, Classification with Ruby
Evolve Eevee with Ruby
Install Composer with Docker
Install rbenv with apt on ubuntu and put ruby
Clogged with Express npm install
Network install CentOS 8 with Kickstart.
Ruby version switching with rbenv
Install Java 7 with Homebrew (cask)
Solve Google problems with Ruby
I tried DI with Ruby
GraphQL Client starting with Ruby
Install Oracle JDK 8 with Ansible
Ruby: Send email with Starttls
Leap year judgment with Ruby
Format Ruby with VS Code
Integer check method with ruby
Ruby Learning # 8 Working With String
Install Ruby 2.7 on RHEL 8 (AppStream)
[Ruby] problem with if statement
Install Ruby 2.7 on CentOS 7 (SCL)
Studying with CodeWar (ruby) ⑤ proc
Use Ruby with Google Colab
[Ruby] REPL-driven development with pry
Getting Started with Ruby Modules
[ruby] Method call with argument
Install Ruby on Sakura's VPS
Install Ruby 3.0.0 Preview 1 with a combination of Homebrew and rbenv
Make electronic music with randomness with Ruby
Install Amazon Corretto JDK with SDKMAN!
Install gem in Serverless Framework and AWS Lambda with Ruby environment
Install java with Ubuntu 16.04 based Docker
[Ruby on Rails] yarn install --check-files
Ruby Scraping-Move Selenium Headless with VPS.
Install Java and Tomcat with Ansible
Learning Ruby with AtCoder 6 [Contest 168 Therefore]
Install Java with zip on Windows
How to install ruby through rbenv
Install Ruby 2.5 on CentOS 7 using SCL
Let's use Amazon Textract with Ruby
I can't install lombok with Gradle.
Programming with ruby (on the way)
Studying with CodeWar (ruby) ④ case ~ when
mysql2 fails to install with bundle install
[Ruby] Extracting elements with slice method
How to install Bootstrap in Ruby
[Ruby] Handle instance variables with instance methods
Handle DatePicker with Ruby / gtk3 + glade3
Impressions of making BlackJack-cli with Ruby
With CodeDeploy, Install doesn't end endlessly
Make a typing game with ruby
With ruby ● × Game and Othello (basic review)
Solve with Ruby AtCoder ABC177 D UnionFind