Ruby ① Build a Windows environment

memorandum

Ruby download with installer

Download the binary for Windows from the following site.

image.png

image.png

Double-click the downloaded exe file.

image.png

The installer will start, so follow the instructions to proceed with the installation and confirm that it is complete.

image.png

Confirmation that it was installed successfully

Launch a command prompt and enter the following command.

ruby -v

If it is installed successfully, Ruby version information will be displayed. image.png

Script execution using ruby command

Create the following contents as a file named hello.rb.

hello.rb


puts 'Hello, world!'

After that, open a command prompt, change to the directory where you saved the file, and then execute the following command.

ruby hello.rb

The script is executed and the result is displayed on the command prompt. image.png

Recommended Posts

Ruby ① Build a Windows environment
Build a development environment where Ruby on Rails breakpoints work on Windows
People who don't usually use Ruby build a Ruby environment
Build ruby debug environment with VS Code of Windows 10
Build a Node.js environment with Docker
Build a Tomcat 8.5 environment with Pleiades 4.8
Build a XAMPP environment on Ubuntu
Difficulties in building a Ruby on Rails environment (Windows 10) (SQLite3)
Build a PureScript development environment with Docker
Build a WAS execution environment from Docker
[Ruby] Building a Ruby development environment on Ubuntu
Build a Wordpress development environment with Docker
Ruby build method
Build a JMeter environment on your Mac
Steps to build a Ruby on Rails development environment with Vagrant
Build a simple Docker + Django development environment
Build a Windows application test environment with Selenium Grid, Appium, and Windows Application Driver
How to build a Ruby on Rails environment using Docker (for Docker beginners)
How to build a Ruby on Rails development environment with Docker (Rails 6.x)
How to build a Ruby on Rails development environment with Docker (Rails 5.x)
Template: Build a Ruby / Rails development environment with a Docker container (Ubuntu version)
Template: Build a Ruby / Rails development environment with a Docker container (Mac version)
Build a development environment for Docker + Rails6 + Postgresql
[Windows] [IntelliJ] [Java] [Tomcat] Create a Tomcat9 environment with IntelliJ
Build a Laravel / Docker environment with VSCode devcontainer
Building a Ruby environment for classes on Mac
[Personal memo] Ruby on Rails environment construction (Windows)
Build a simple Docker Compose + Django development environment
Build a Laravel environment on an AWS instance
[Win10] Build a JSF development environment with NetBeans
[Ruby on Rails] Let's build an environment on mac
Build a development environment for Docker, java, vscode
Build a Java runtime environment on Sakura VPS
How to build a Pytorch environment on Ubuntu
Build a Java development environment with VS Code
Penronse environment construction [Windows]
Build a Doker-based development environment on Windows 10 Home 2020 ver. Part 1 Until WSL2-based Docker build
java build a triangle
Build a development environment to create Ruby on Jets + React apps with Docker
Memo to build a Servlet environment on AWS EC2
Easily build a Vue.js environment with Docker + Vue CLI
[Note] Build a Python3 environment with Docker in EC2
[Docker] Build a Wordpress environment locally (Win, Mac) quickly
[Environment construction] Build a Java development environment with VS Code!
Try to build a Java development environment using Docker
[2021] Build a Docker + Vagrant environment for using React / TypeScript
Install Ubuntu 20.04 in virtual box on windows10 and build a development environment using docker
Ruby Learning # 2 Drawing a Shape
Deploying a Java environment with Windows Subsystem for Linux (WSL)
[Ruby] Extracting a two-dimensional array
Rails engineer environment construction ruby2.7.1
What is a Ruby module?
Creating a calendar using Ruby
Update Ruby in Unicorn environment
Manually build OpenJDK on Windows
Ruby Learning # 11 Building a Calculator
Create a fortune using Ruby
Build a "Spring Thorough Introduction" development environment with IntelliJ IDEA
Ubuntu on Windows build speed
Build a CentOS 8 virtual environment on your Mac with VirtualBox
Offline environment construction Ruby edition