Install Ruby on MSYS2 with pacman

Steps to manually install Ruby later in your existing MSYS2 environment

Operating environment

Windows10 Home Edition

msys2-x86_64-20190524

Update installed packages

#Package database update
$ pacman -Sy

#Update installed packages to the latest version
$ pacman -Suu

If you get the following warning, close the MSYS2 shell with the close button, reboot and run pacman -Suu again.

warning:Please close MSYS2 and check for updates again before returning to the shell
warning:Instead of calling exit, for example close the terminal window

Install toolchain (gcc)

$ pacman -S base-devel
$ pacman -S mingw-w64-x86_64-toolchain

installation of ruby

$ pacman -S mingw-w64-x86_64-ruby

Operation check

$ ruby --version
ruby 2.7.1p83 (2020-03-31 revision a0c7c23c9c) [x64-mingw32]

$ gem --version
3.1.2

$ gem list --local
benchmark (default: 0.1.0)
bigdecimal (default: 2.0.0)
bundler (default: 2.1.4)
cgi (default: 0.1.0)
csv (default: 3.1.2)
date (default: 3.0.0)
dbm (default: 1.1.0)
delegate (default: 0.1.0)
did_you_mean (default: 1.4.0)
etc (default: 1.1.0)
fcntl (default: 1.0.0)
fiddle (default: 1.0.0)
fileutils (default: 1.4.1)
forwardable (default: 1.3.1)
gdbm (default: 2.1.0)
getoptlong (default: 0.1.0)
io-console (default: 0.5.6)
ipaddr (default: 1.2.2)
irb (default: 1.2.3)
json (default: 2.3.0)
logger (default: 1.4.2)
matrix (default: 0.2.0)
minitest (5.13.0)
mutex_m (default: 0.1.0)
net-pop (default: 0.1.0)
net-smtp (default: 0.1.0)
net-telnet (0.2.0)
observer (default: 0.1.0)
open3 (default: 0.1.0)
openssl (default: 2.1.2)
ostruct (default: 0.2.0)
power_assert (1.1.7)
prime (default: 0.1.1)
pstore (default: 0.1.0)
psych (default: 3.1.0)
racc (default: 1.4.16)
rake (13.0.1)
rdoc (default: 6.2.1)
readline (default: 0.0.2)
readline-ext (default: 0.1.0)
reline (default: 0.1.3)
rexml (default: 3.2.3)
rss (default: 0.2.8)
sdbm (default: 1.0.0)
singleton (default: 0.1.0)
stringio (default: 0.1.0)
strscan (default: 1.0.3)
test-unit (3.3.4)
timeout (default: 0.1.0)
tracer (default: 0.1.0)
uri (default: 0.10.0)
webrick (default: 1.6.0)
xmlrpc (0.3.0)
yaml (default: 0.1.0)
zlib (default: 1.1.0)

reference

-MSYS2 / MinGW-w64 (64bit / 32bit) installation procedure memo -How to update the correct package in MSYS2 --Qiita -Install Ruby 2.4 + Rails 5.0.2 in Windows environment with RubyInstaller2 --Qiita

Recommended Posts

Install Ruby on MSYS2 with pacman
Install ruby on Ubuntu 20.04 with rbenv
Install Ruby 3.0.0 with asdf
Install Ruby on Ubuntu 20.04
Install Ruby 2.7 on RHEL 8 (AppStream)
Install Ruby 2.7 on CentOS 7 (SCL)
Install Ruby on Sakura's VPS
Install rbenv with apt on ubuntu and put ruby
[Ruby on Rails] yarn install --check-files
Install Java with zip on Windows
Install Ruby 2.5 on CentOS 7 using SCL
Programming with ruby (on the way)
[Ruby on Rails] View test with RSpec
Notes on using FCM with Ruby on Rails
[Ruby on Rails] Controller test with RSpec
Install Java8 with Yum on Amazon Linux
[Ruby on Rails] Model test with RSpec
Install NextCloud on CentOS 7 with Alibaba Cloud ECS
Introducing Rspec with Ruby on Rails x Docker
Install Java 11 (OpenJDK: AdoptOpenJDK) on macOS with Homebrew
Publish the app made with ruby on rails
Note Book: OpenCV with CUDA Install On Windows10
Install Ruby / Rails on Mac M1 Big Sur 2021-01
Install Java 14 (OpenJDK: AdoptOpenJDK) on macOS with Homebrew
Install Java 8 (OpenJDK: AdoptOpenJDK) on macOS with Homebrew
Install GitLab on CentOS 8 with no internet connection
[Rails] Procedure for linking databases with Ruby On Rails
Determine the current page with Ruby on Rails
[Ruby on Rails] How to install Bootstrap in Rails
[Ruby on Rails] Upload multiple images with refile
I made a portfolio with Ruby On Rails
Install java with Homebrew
Install gradle on mac
How to install Ruby on an EC2 instance on AWS
Install Corretto 8 on Windows
Install OpenJDK on macOS
Install Java on Mac
Install Java with Ansible
Install Golang on CentOS 8
Install OpenJDK8 with RPM
Install pyqt5 on ubuntu
[Ruby on Rails] Delete s3 images with Active Strage
Install Neo4j 4.1.3 on centOS
Run Ruby on Rails RSpec tests with GitHub Actions
[Ruby] I can't install puma on Mac [Rails, etc.]
Install Java 8 (OpenJDK: Amazon Corretto) on macOS with Homebrew
Install Docker on Manjaro
Install Vertica 10.0 on CentOS 6.10
Install Gradle with ubuntu16.04
Getting Started with Ruby
Install PostgreSQL 12 on Centos8
Install nginx on centOS7
Install lombok on SpringToolSuite4
Ruby on Rails Elementary
Ruby on Rails basics
Install Python 3 on CentOS 7
Install kuromoji on CentOS7
Solve the N + 1 problem with Ruby on Rails: acts-as-taggable-on
Install Java 8 (OpenJDK: Zulu Community) on macOS with Homebrew
Install Autoware on Ubuntu 18.04.5
Install Ruby 3.0.0-preview1 on macOS (also without Homebrew ruby-build)