Difficulties in building a Ruby on Rails environment (Windows 10) (SQLite3)

I've finally installed Rails. I will summarize the first difficult point.

After installing Ruby and Rails When I created a new Rails app, I got a lot of errors like this.

error: mingw32:Key"AD351C50AE085775EB59333B5F92EFC1A47D45A1"Is unknown
・ ・ ・
error:Database'mingw64'Is invalid(Invalid or corrupted database(PGP
key))

In Gemfile gem 'sqlite3', '~> 1.4' Because it was I tried various corrections, but no.

Therefore Place sqlite.dll in Ruby bin install node.js Yarn installation Do

gem install sqlite3

Implemented. I still get an error ... If you take a closer look at the error content, you will see the following description ...

checking for sqlite3.h... no
sqlite3.h is missing. Install SQLite3 from http://www.sqlite.org/ first.

Are you stuck in the check of sqlite3.h? !!

So, put sqlite3.h in Ruby bin, specify the location of sqlite.h and the location of sqlite3.dll in the argument, and execute gem install sqlite3.

I still get an error ... It worked well when I specified up to the version of sqlite3 in the argument.

It is like this.

python


gem install sqlite3 --version 1.3.13 --platform=ruby -- --with-sqlite3-include=C:\Ruby27-x64\bin --with-sqlite3-lib=C:\Ruby27-x64\bin

Finally Gemfile gem 'sqlite3', '~> 1.3.13' Correct to bundle install Execute. When I created a new Rails app again, it was created successfully.

environment

Windows10 home

Recommended Posts

Difficulties in building a Ruby on Rails environment (Windows 10) (SQLite3)
[Ruby] Building a Ruby development environment on Ubuntu
Build a development environment where Ruby on Rails breakpoints work on Windows
Building a Ruby environment for classes on Mac
[Personal memo] Ruby on Rails environment construction (Windows)
(Ruby on Rails6) Creating data in a table
Change from SQLite3 to PostgreSQL in a new Ruby on Rails project
Ruby ① Build a Windows environment
Build a Ruby on Rails development environment on AWS Cloud9
A memo when building a Rails 5.2 development environment using Docker Desktop + WSL2 on Windows 10 Home
Ruby on Rails Japanese-English support i18n
Ruby on Rails 6.0 environment construction memo
How to display a graph in Ruby on Rails (LazyHighChart)
Apply CSS to a specific View in Ruby on Rails
From building to deploying Ruby on Jets in docker-compose environment <Part 2>
From building to deploying Ruby on Jets in docker-compose environment <Part 1>
(Ruby on Rails6) Creating a database and displaying it in a view
Building a haskell environment with Docker + VS Code on Windows 10 Home
Create a development environment for Ruby 3.0.0 and Rails 6.1.0 on Ubuntu 20.04.1 LTS
Steps to build a Ruby on Rails development environment with Vagrant
Building a Lambda development environment in Eclipse
Ruby on Rails in Visual Studio Codespaces
Beginners create portfolio in Ruby on Rails
Muscle Ruby on Rails Day 1 ~ Environment Construction ~
How to create a query using variables in GraphQL [Using Ruby on Rails]
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)
A series of flow of table creation → record creation, deletion → table deletion in Ruby on Rails
Recommendation of Service class in Ruby on Rails
Rails new in Ruby on Rails ~ Memorandum until deployment 2
Introducing Rspec, a Ruby on Rails test framework
[Ruby on Rails] A memorandum of layout templates
Rails new in Ruby on Rails ~ Memorandum until deployment 1
[Ruby on Rails] Let's build an environment on mac
Ruby on Rails development environment construction on M1 Mac
[Ruby on Rails] How to install Bootstrap in Rails
I made a portfolio with Ruby On Rails
[First environment construction] I tried to create a Rails 6 + MySQL 8.0 + Docker environment on Windows 10.
A memorandum when building an environment with Ruby3.0 x Rails6.1 x Docker x CentOS Stream
Ruby on Rails Elementary
Ruby on Rails basics
Ruby On Rails Association
[Introduction] Try to create a Ruby on Rails application
[Environment construction] Ruby on Rails 5.2 system development environment construction [within 1 hour]
[Ruby on Rails] How to write enum in Japanese
Sharing research on ER diagram automation in Rails environment
[Ruby on Rails Tutorial] Error in the test in Chapter 3
Docker the development environment of Ruby on Rails project
Deploy to Ruby on Rails Elastic beanstalk (Environment construction)
[Ruby On Rails] How to reset DB in Heroku
[Ruby / Rails] Set a unique (unique) value in the class
[Ruby on Rails] Post image preview function in refile
[Environment construction Mac] Ruby on Rails (+ Webpacker handles errors)
Ruby on Rails environment construction using VirtualBox, Vagrant, cyberduck
Ruby on Rails Tutorial Troublesome notes when running on Windows
Beginners use ubuntu in windows to prepare rails environment
Install Ubuntu 20.04 in virtual box on windows10 and build a development environment using docker
Ruby on Rails Incorrect string value error resolution when posting a form in Japanese
Docker command to create Rails project with a single blow in environment without Ruby
Ruby on rails learning record -2020.10.03