前提・実現したいこと
Rails s でサーバー立ち上げたいです。
発生している問題・エラーメッセージ
Traceback (most recent call last):
21: from bin/rails:4:in <main>' 20: from bin/rails:4:in
require'
19: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-5.2.4.2/lib/rails/commands.rb:18:in <top (required)>' 18: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-5.2.4.2/lib/rails/command.rb:46:in
invoke'
17: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-5.2.4.2/lib/rails/command/base.rb:69:in perform' 16: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/thor-1.0.1/lib/thor.rb:392:in
dispatch'
15: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/thor-1.0.1/lib/thor/invocation.rb:127:in invoke_command' 14: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/thor-1.0.1/lib/thor/command.rb:27:in
run'
13: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-5.2.4.2/lib/rails/commands/server/server_command.rb:142:in perform' 12: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-5.2.4.2/lib/rails/commands/server/server_command.rb:142:in
tap'
11: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-5.2.4.2/lib/rails/commands/server/server_command.rb:145:in block in perform' 10: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-5.2.4.2/lib/rails/commands/server/server_command.rb:145:in
require'
9: from C:/Users/81803/sample_app/config/application.rb:7:in <top (required)>' 8: from C:/Ruby26-x64/lib/ruby/2.6.0/bundler.rb:114:in
require'
7: from C:/Ruby26-x64/lib/ruby/2.6.0/bundler/runtime.rb:65:in require' 6: from C:/Ruby26-x64/lib/ruby/2.6.0/bundler/runtime.rb:65:in
each'
5: from C:/Ruby26-x64/lib/ruby/2.6.0/bundler/runtime.rb:76:in block in require' 4: from C:/Ruby26-x64/lib/ruby/2.6.0/bundler/runtime.rb:76:in
each'
3: from C:/Ruby26-x64/lib/ruby/2.6.0/bundler/runtime.rb:81:in block (2 levels) in require' 2: from C:/Ruby26-x64/lib/ruby/2.6.0/bundler/runtime.rb:81:in
require'
1: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/sqlite3-1.3.13-x64-mingw32/lib/sqlite3.rb:4:in <top (required)>' C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/sqlite3-1.3.13-x64-mingw32/lib/sqlite3.rb:4:in
require': cannot load such file -- sqlite3/2.6/sqlite3_native (LoadError)
22: from bin/rails:4:in <main>' 21: from bin/rails:4:in
require'
20: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-5.2.4.2/lib/rails/commands.rb:18:in <top (required)>' 19: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-5.2.4.2/lib/rails/command.rb:46:in
invoke'
18: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-5.2.4.2/lib/rails/command/base.rb:69:in perform' 17: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/thor-1.0.1/lib/thor.rb:392:in
dispatch'
16: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/thor-1.0.1/lib/thor/invocation.rb:127:in invoke_command' 15: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/thor-1.0.1/lib/thor/command.rb:27:in
run'
14: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-5.2.4.2/lib/rails/commands/server/server_command.rb:142:in perform' 13: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-5.2.4.2/lib/rails/commands/server/server_command.rb:142:in
tap'
12: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-5.2.4.2/lib/rails/commands/server/server_command.rb:145:in block in perform' 11: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-5.2.4.2/lib/rails/commands/server/server_command.rb:145:in
require'
10: from C:/Users/81803/sample_app/config/application.rb:7:in <top (required)>' 9: from C:/Ruby26-x64/lib/ruby/2.6.0/bundler.rb:114:in
require'
8: from C:/Ruby26-x64/lib/ruby/2.6.0/bundler/runtime.rb:65:in require' 7: from C:/Ruby26-x64/lib/ruby/2.6.0/bundler/runtime.rb:65:in
each'
6: from C:/Ruby26-x64/lib/ruby/2.6.0/bundler/runtime.rb:76:in block in require' 5: from C:/Ruby26-x64/lib/ruby/2.6.0/bundler/runtime.rb:76:in
each'
4: from C:/Ruby26-x64/lib/ruby/2.6.0/bundler/runtime.rb:81:in block (2 levels) in require' 3: from C:/Ruby26-x64/lib/ruby/2.6.0/bundler/runtime.rb:81:in
require'
2: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/sqlite3-1.3.13-x64-mingw32/lib/sqlite3.rb:2:in <top (required)>' 1: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/sqlite3-1.3.13-x64-mingw32/lib/sqlite3.rb:6:in
rescue in <top (required)>'
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/sqlite3-1.3.13-x64-mingw32/lib/sqlite3.rb:6:in `require': cannot load such file -- sqlite3/sqlite3_native (LoadError)
該当のソースコード
Ruby
1begin 2 RUBY_VERSION =~ /(\d+.\d+)/ 3 require "sqlite3/#{$1}/sqlite3_native" 4rescue LoadError 5 require 'sqlite3/sqlite3_native' 6end 7 8require 'sqlite3/database' 9require 'sqlite3/version' 10 11~略~
試したこと
何を試したらよいかもわからないです。
補足情報(FW/ツールのバージョンなど)
windows10
Atom
Rails 5.2.4.2
ruby 2.6.6p146 (2020-03-31 revision 67876) [x64-mingw32]
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。