rails s
を行うと
Traceback (most recent call last):
22: from bin/rails:4:in <main>' 21: from bin/rails:4:in
require'
20: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/railties-5.2.4.2/lib/rails/commands.rb:18:in <top (required)>' 19: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/railties-5.2.4.2/lib/rails/command.rb:46:in
invoke'
18: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/railties-5.2.4.2/lib/rails/command/base.rb:69:in perform' 17: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/thor-1.0.1/lib/thor.rb:392:in
dispatch'
16: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/thor-1.0.1/lib/thor/invocation.rb:127:in invoke_command' 15: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/thor-1.0.1/lib/thor/command.rb:27:in
run'
14: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/railties-5.2.4.2/lib/rails/commands/server/server_command.rb:142:in perform' 13: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/railties-5.2.4.2/lib/rails/commands/server/server_command.rb:142:in
tap'
12: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/railties-5.2.4.2/lib/rails/commands/server/server_command.rb:145:in block in perform' 11: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/railties-5.2.4.2/lib/rails/commands/server/server_command.rb:145:in
require'
10: from C:/Users/1031t/sample_app/config/application.rb:7:in <top (required)>' 9: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/bundler-2.1.4/lib/bundler.rb:174:in
require'
8: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/bundler-2.1.4/lib/bundler/runtime.rb:58:in require' 7: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/bundler-2.1.4/lib/bundler/runtime.rb:58:in
each'
6: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/bundler-2.1.4/lib/bundler/runtime.rb:69:in block in require' 5: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/bundler-2.1.4/lib/bundler/runtime.rb:69:in
each'
4: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/bundler-2.1.4/lib/bundler/runtime.rb:74:in block (2 levels) in require' 3: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/bundler-2.1.4/lib/bundler/runtime.rb:74:in
require'
2: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/sqlite3-1.3.13-x64-mingw32/lib/sqlite3.rb:2:in <top (required)>' 1: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/sqlite3-1.3.13-x64-mingw32/lib/sqlite3.rb:6:in
rescue in <top (required)>'
C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/sqlite3-1.3.13-x64-mingw32/lib/sqlite3.rb:6:in `require': cannot load such file -- sqlite3/sqlite3_native (LoadError)
このエラー文が出てきます。解決策が分からないため、教えていただきたいです
~現在のバージョン~
ruby 2.5.7
rails 5.2.4.2
~試したこと~
・C:\Ruby23-x64\lib\ruby\gems\2.3.0\specificationsにある、sqlite3-1.3.11-x64-mingw32.gemspecを開き、s.require_paths= ["lib/sqlite3_native"]の形にして、サーバーを起動
(結果:同じエラー文)
・$ gem uninstall -a sqlite3
$ gem install sqlite3 --platform=ruby
(結果:Could not find sqlite3-1.3.13-x64-mingw32 in any of the sources
Run bundle install
to install missing gems.
のエラー文がrails sで出現)
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2020/04/08 01:53