Ruby on Rails 6.0 environment construction memo

Introduction

A memorandum until the first Ruby on Rails environment was built on a personal Windows 10 PC. By the way, I have only touched Linux (CentOS) and CakaPHP of Windows 10 for the Web system.

Install Ruby 2.6.6

It is said that a warning may occur depending on the combination of Ruby 2.7 and Rails 6.0 (or peripheral gems), so select Ruby 2.6.6.

--Download "rubyinstaller-devkit-2.6.6-1-x64.exe" from the link below. https://rubyinstaller.org/downloads/

--Since an error will occur in the installation process using the command line later, stop Windows FW and security software in advance.

--Run the downloaded installer. Check "Use UTF-8 as default external encoding." Check "MSYS 2 development toolchain 2019-10-01" Select the editor "Visual Studio Code"

--Enter and execute with RubyInstaller on the displayed command line.

Now that the Ruby installation is complete, check the version on the command line.

> ruby -v
ruby 2.6.6p146 (2020-03-31 revision 67876) [x64-mingw32]

Also check the version of gem.

gem -v
3.0.3

Git installation

--Download the installer from the following site. https://gitforwindows.org/

--Run the downloaded installer. Select "Use Visual Stadio Code as Git's default editor" Select "Use the OpenSSL library" What is extra options

With the above, confirm that an icon such as "Git Bush" has been added to the Windows start menu and exit.

Install Node.js

Use nodist to version control Node.js.

--Download the nodist installer from the following site. "NodistSetup-v0.9.1.exe" https://qiita.com/satoyan419/items/56e0b5f35912b9374305

--Install nodist.

--nodist Version confirmation.

>nodist -v
0.9.1

--Install Node.js. Select the latest 12 series (End-of-life: 2022-04-30)

>nodist + 12.19.0
>nodist 12.19.0
>node -v
v12.19.0

--Since the version of nmp is old, update it by referring to the link below. https://nodejs.org/ja/download/releases/

>nodist npm 6.14.8
>npm -v
6.14.8

Yarn installation

>npm install -g yarn
>yarn -v
1.22.10

bndler update

The version was old, so updated to the latest version.

>gem install bundler
>bundler -v
Bundler version 2.1.4

SQLite 3 installation

If the user name of the temporary file path is full-width, the temporary file creation will fail, so change the temporary file first and then install.

>set TEMP=C:\Temp
>set TMP=C:\Temp
>gem install sqlite3

Rails 6.0.3 installation

>gem install rails -v 6.0.3
>rails -v 
Rails 6.0.3

that's all.

Recommended Posts

Ruby on Rails 6.0 environment construction memo
[Personal memo] Ruby on Rails environment construction (Windows)
Muscle Ruby on Rails Day 1 ~ Environment Construction ~
Rails engineer environment construction ruby2.7.1
Ruby on Rails development environment construction on M1 Mac
[Environment construction] Ruby on Rails 5.2 system development environment construction [within 1 hour]
Deploy to Ruby on Rails Elastic beanstalk (Environment construction)
Rails on Docker environment construction procedure
[Environment construction Mac] Ruby on Rails (+ Webpacker handles errors)
Ruby on Rails environment construction using VirtualBox, Vagrant, cyberduck
From 0 to Ruby on Rails environment construction [macOS] (From Homebrew installation to Rails installation)
[Procedure 1 for beginners] Ruby on Rails: Construction of development environment
Ruby on Rails6 Practical Guide cp13 ~ cp15 [Memo]
Spring Boot environment construction memo on mac
[Docker] Development environment construction Rails6 / Ruby2.7 / MySQL8
Ruby on Rails6 Practical Guide cp4 ~ cp6 [Memo]
Ruby on Rails6 Practical Guide cp10 ~ cp12 [Memo]
Ruby on Rails6 Practical Guide cp16 ~ cp18 [Memo]
CentOS8.2 (x86_64) + ruby2.5 + Rails5.2 + MariaDB (10.3.17) environment construction
Rails Docker environment construction
Ruby on Rails Elementary
Ruby on Rails basics
Ruby On Rails Association
Ruby on Rails --From environment construction to simple application development on WSL2
Ruby on Rails development environment construction with Docker + VSCode (Remote Container)
Ruby on Rails6 Practical Guide [Extensions] cp7 ~ cp9 [Memo]
Ruby on Rails6 Practical Guide [Extensions] cp10 ~ cp12 [Memo]
Ruby on Rails6 Practical Guide [Extensions] cp3 ~ cp6 [Memo]
Environment construction command memo with Docker on AWS
[Ruby on Rails] Select2 introduction memo for Webpacker
[Ruby on Rails] Let's build an environment on mac
Environment construction of Ruby on Rails from 0 [Cloud9] (From Ruby version change to Rails installation)
[Error] Switch environment construction to use Ruby on Rails oss (open source)
How to solve the local environment construction of Ruby on Rails (MAC)!
Rails6 development environment construction [Mac]
Ruby on rails learning record -2020.10.03
Portfolio creation Ruby on Rails
Ruby on rails learning record -2020.10.04
[Ruby on Rails] Debug (binding.pry)
Ruby on rails learning record -2020.10.05
Ruby on rails learning record -2020.10.09
Ruby on Rails config configuration
MySQL 5.7 (Docker) environment construction memo
Ruby on Rails basic learning ①
[Ruby on Rails] about has_secure_password
Ruby on rails learning record-2020.10.07 ②
Redmine (Docker) environment construction memo
Commentary on partial! --Ruby on Rails
[Docker] Rails 5.2 environment construction with docker
Ruby on rails learning record-2020.10.07 ①
Cancel Ruby on Rails migration
Offline environment construction Ruby edition
[Super easy] Ruby environment construction
Ruby on rails learning record -2020.10.06
[Rails / MySQL] Mac environment construction
Ruby on Rails validation summary
Ruby on Rails Basic Memorandum
Docker the development environment of Ruby on Rails project
GOOS book Openfire On MacOS Mojave environment construction memo
[Ruby on Rails] From MySQL construction to database change
Ruby on Rails Overview (Beginner Summary)