Troublesome Rails environment construction flow [Windows 10]

Nice to meet you, this is Chibi Nori.

This time I will write the flow when building the Ruby on Rails environment with Qiita for the first time. (Far from Qiita, it's the first time to write an article like this ..)

First of all, access https://rubyinstaller.org/downloads/ to install Ruby. Download the red circle in the image below スクリーンショット (4).png

The installer starts up and press "1,2,3". https___qiita-image-store.s3.amazonaws.com_0_101848_30df2393-99d9-131a-4004-442044a43b70.png Mokkai Enter.

Is this the completion of Ruby installation? Check the version with Ruby -v with cmd. 2.4.10 Okay

Then install SQLite3 https://sqlite.org/download.html Access. スクリーンショット (5).png Download the two red circles, and after unzipping, download sqlite3.dll and sqlite3.exe in the folder. Copy and paste in the bin folder under Ruby that you just installed.

Next is the Rails installation, gem install rails -v "5.2.3" and Enter in cmd. Check the version with Ruby -v with cmd. 5.2.3 Okay

Edit the Gemfile in the created app by doing rails new sample -G with cmd. gem'sqlite3'was changed to gem'sqlite3','~> 1.3.6'. This is a message from God.

Finish with bundle install and rails s スクリーンショット (3).png Well, I was able to do it.

The reason I wrote this article was that I, a super beginner of programming, wanted to make a web application. I was disappointed that I couldn't do it in half a day when I tried to build a Rails environment.

The announcement from God on the way is advice from seniors in the company! Mr. T

The part that I struggled with was that the versions of Ruby and SQLite 3 did not mesh well. Poor basic knowledge in building an environment.

It's a super-appropriate article, but I hope it helps someone. (Article production time 30 minutes)

(20/06/11) Addendum 1: Is the way to write the program code different? How do you do ...

see you.

Recommended Posts

Troublesome Rails environment construction flow [Windows 10]
Penronse environment construction [Windows]
Rails Docker environment construction
[Personal memo] Ruby on Rails environment construction (Windows)
Rails6 development environment construction [Mac]
Rails engineer environment construction ruby2.7.1
[Docker] Rails 5.2 environment construction with docker
[Rails / MySQL] Mac environment construction
[Windows] WSL2 + Ubuntu + Node.js environment construction
Rails on Docker environment construction procedure
[Environment construction with Docker] Rails 6 & MySQL 8
[Environment construction] Uninstall rails from local
[Rails] AWS EC2 instance environment construction
Rails environment construction with Docker (personal apocalypse)
Rails API server environment construction using docker-compose
[Docker] Development environment construction Rails6 / Ruby2.7 / MySQL8
Rails & React & Webpacker & MySQL Environment Construction Manual
Muscle Ruby on Rails Day 1 ~ Environment Construction ~
CentOS8.2 (x86_64) + ruby2.5 + Rails5.2 + MariaDB (10.3.17) environment construction
[Java] Environment construction
Java environment construction
[Spring] Environment construction
Docker environment construction
How to link Rails6 Vue (from environment construction)
Rails6 [API mode] + MySQL5.7 environment construction with Docker
Ruby on Rails development environment construction on M1 Mac
[First environment construction] I tried to create a Rails 6 + MySQL 8.0 + Docker environment on Windows 10.
[Environment construction] Eclipse installation
[Environment construction] Ruby on Rails 5.2 system development environment construction [within 1 hour]
[Flutter] Ubuntu 20.04 environment construction
virtulbox + vagrant + Docker + nginx + puma + MySQL Rails environment construction
Environment construction of Rails5 + MySQL8.0 + top-level volumes with docker-compose
Deploy to Ruby on Rails Elastic beanstalk (Environment construction)
[Rails] Heroku deployment flow
Circle CI environment construction
[Environment construction Mac] Ruby on Rails (+ Webpacker handles errors)
java development environment construction
Ruby on Rails environment construction using VirtualBox, Vagrant, cyberduck
Beginners use ubuntu in windows to prepare rails environment
From 0 to Ruby on Rails environment construction [macOS] (From Homebrew installation to Rails installation)
Difficulties in building a Ruby on Rails environment (Windows 10) (SQLite3)
[Procedure 1 for beginners] Ruby on Rails: Construction of development environment
Rails application development environment construction with Docker [Docker, Rails, Puma, Nginx, MySQL]
Windows10 Eclipse environment construction & what are you doing Fukahori August 2020
[Spring Boot] Environment construction (macOS)
I tried node-jt400 (Environment construction)
Rails6 (MySQL, Ubuntu environment, Cloud9)
[Rails] gem devise installation flow
MySQL 5.7 (Docker) environment construction memo
Introduction to Metabase ~ Environment Construction ~
rails g model Overall flow
[Environment variables] What are rails environment variables?
JavaFX environment construction in Java 13
Redmine (Docker) environment construction memo
AtCoder Challenge Environment Construction (Java 8)
Offline environment construction Ruby edition
[Super easy] Ruby environment construction
[Docker] postgres, pgadmin4 environment construction
Laravel environment construction (Ubuntu 18.04 LTS)
React environment construction with Docker
Offline environment construction CentOS edition