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.
Windows10 home
Recommended Posts