I am a beginner. I think this is a rudimentary question, but I stumbled upon the environment construction, so I would appreciate it if you could teach me. I'm trying to start Rails server under Windows 10.
From the command prompt
When executed with ruby -v, ruby 2.3.3p222 (2016-11-21 revision 56859) [i386-mingw32]
When run with rails -v Rails 5.1.7
Is returned. I was planning to name the application "book", so
rails new book
And a folder called "book" was created in C: \ Users \ 81804.
I ran "cd book" from cmd, moved to the book directory, and ran "rails s" there, and I got the following error:
Could not find gem 'turbolinks (~> 5) x86-mingw32' in any of the gem sources listed in your Gemfile.
Run bundle install
to install missing gems.
I tried running "bundle install" at the command prompt. Then the string was spelled for a while, and when I read the bottom of the text, I found that it was causing an error. The error message was something like this.
An error occurred while installing sqlite3 (1.4.2), and Bundler cannot continue.
Make sure that gem install sqlite3 -v '1.4.2' --source 'https://rubygems.org/'
succeeds before bundling.
In Gemfile: sqlite3 It was like this. From the error statement gem install sqlite3 -v '1.4.2' --source 'https://rubygems.org/ Should I run it at the command prompt? If you interpret it as and enter this
Gem files will remain installed in C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/sqlite3-1.4.2 for inspection. Results logged to C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/extensions/x86-mingw32/2.3.0/sqlite3-1.4.2/gem_make.out It seems that it has succeeded, but when I try to execute "rails s" again
Could not find gem 'turbolinks (~> 5) x86-mingw32' in any of the gem sources listed in your Gemfile.
Run bundle install
to install missing gems.
I'm in a situation where the same error occurs again.
It may not be relevant, but OfficeScan has been disabled.
Could anyone give me some advice?
The PC environment used is as follows. ・ Windows10 Home -Intel Core i7-8550U CPU 1.80GHz 1.99GHz -Mounted memory 16.0GB 64-bit operating system, x64-based processor
https://teratail.com/questions/176355 It was very close to the question here, so I tried it immediately. Answer that seems to be valid ↓ "The version 1.4.0 of sqlite3 is not compatible with rails and cannot be used. Please specify the version as follows in the Gemfile."
gem 'sqlite3', '~> 1.3.6'
I didn't know what the "gemfile" was, but there was a 2KB file called "Gemfile" in the newly created directory, so I opened it with VS Code and opened it.
Where it was written as gem'sqlite3' →gem 'sqlite3', '~> 1.3.6' I rewrote it to and saved it by overwriting.
Then, at the command prompt again, I moved to this directory and tried running "Rails s", but after all
Could not find gem 'turbolinks (~> 5) x86-mingw32' in any of the gem sources listed in your Gemfile.
Run bundle install
to install missing gems.
I get the error ...
Recommended Posts