teratail質問
前提・実現したいこと
(例)Ruby on Railsで新規作成したプログラムをサーバーで起動させ、確認しようとしていますが、「rails s -p 3000」を実行すると下記のエラーが出てしまいます。
発生している問題・エラーメッセージ
Traceback (most recent call last):
27: from bin/rails:4:in <main>' 26: from bin/rails:4:in
require'
25: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-6.0.2.1/lib/rails/commands.rb:18:in <top (required)>' 24: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-6.0.2.1/lib/rails/command.rb:46:in
invoke'
23: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-6.0.2.1/lib/rails/command/base.rb:69:in perform' 22: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/thor-1.0.1/lib/thor.rb:392:in
dispatch'
21: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/thor-1.0.1/lib/thor/invocation.rb:127:in invoke_command' 20: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/thor-1.0.1/lib/thor/command.rb:27:in
run'
19: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-6.0.2.1/lib/rails/commands/server/server_command.rb:138:in perform' 18: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-6.0.2.1/lib/rails/commands/server/server_command.rb:138:in
tap'
17: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-6.0.2.1/lib/rails/commands/server/server_command.rb:141:in block in perform' 16: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/activesupport-6.0.2.1/lib/active_support/dependencies.rb:325:in
require'
15: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/activesupport-6.0.2.1/lib/active_support/dependencies.rb:291:in load_dependency' 14: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/activesupport-6.0.2.1/lib/active_support/dependencies.rb:325:in
block in require'
13: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/activesupport-6.0.2.1/lib/active_support/dependencies.rb:325:in require' 12: from C:/Users/P19013/IdeaProjects/team1/config/application.rb:7:in
<top (required)>'
11: from C:/Ruby26-x64/lib/ruby/2.6.0/bundler.rb:114:in require' 10: from C:/Ruby26-x64/lib/ruby/2.6.0/bundler/runtime.rb:65:in
require'
9: from C:/Ruby26-x64/lib/ruby/2.6.0/bundler/runtime.rb:65:in each' 8: from C:/Ruby26-x64/lib/ruby/2.6.0/bundler/runtime.rb:76:in
block in require'
7: from C:/Ruby26-x64/lib/ruby/2.6.0/bundler/runtime.rb:76:in each' 6: from C:/Ruby26-x64/lib/ruby/2.6.0/bundler/runtime.rb:81:in
block (2 levels) in require'
5: from C:/Ruby26-x64/lib/ruby/2.6.0/bundler/runtime.rb:81:in require' 4: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/sqlite3-1.3.13-x64-mingw32/lib/sqlite3.rb:4:in
<top (required)>'
3: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/activesupport-6.0.2.1/lib/active_support/dependencies.rb:325:in require' 2: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/activesupport-6.0.2.1/lib/active_support/dependencies.rb:291:in
load_dependency'
1: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/activesupport-6.0.2.1/lib/active_support/dependencies.rb:325:in block in require' C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/activesupport-6.0.2.1/lib/active_support/dependencies.rb:325:in
require': cannot load such file -- sqlite3/2.6/sqlite3_native (LoadError)
28: from bin/rails:4:in <main>' 27: from bin/rails:4:in
require'
26: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-6.0.2.1/lib/rails/commands.rb:18:in <top (required)>' 25: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-6.0.2.1/lib/rails/command.rb:46:in
invoke'
24: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-6.0.2.1/lib/rails/command/base.rb:69:in perform' 23: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/thor-1.0.1/lib/thor.rb:392:in
dispatch'
22: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/thor-1.0.1/lib/thor/invocation.rb:127:in invoke_command' 21: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/thor-1.0.1/lib/thor/command.rb:27:in
run'
20: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-6.0.2.1/lib/rails/commands/server/server_command.rb:138:in perform' 19: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-6.0.2.1/lib/rails/commands/server/server_command.rb:138:in
tap'
18: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-6.0.2.1/lib/rails/commands/server/server_command.rb:141:in block in perform' 17: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/activesupport-6.0.2.1/lib/active_support/dependencies.rb:325:in
require'
16: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/activesupport-6.0.2.1/lib/active_support/dependencies.rb:291:in load_dependency' 15: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/activesupport-6.0.2.1/lib/active_support/dependencies.rb:325:in
block in require'
14: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/activesupport-6.0.2.1/lib/active_support/dependencies.rb:325:in require' 13: from C:/Users/P19013/IdeaProjects/team1/config/application.rb:7:in
<top (required)>'
12: from C:/Ruby26-x64/lib/ruby/2.6.0/bundler.rb:114:in require' 11: from C:/Ruby26-x64/lib/ruby/2.6.0/bundler/runtime.rb:65:in
require'
10: from C:/Ruby26-x64/lib/ruby/2.6.0/bundler/runtime.rb:65:in each' 9: from C:/Ruby26-x64/lib/ruby/2.6.0/bundler/runtime.rb:76:in
block in require'
8: from C:/Ruby26-x64/lib/ruby/2.6.0/bundler/runtime.rb:76:in each' 7: from C:/Ruby26-x64/lib/ruby/2.6.0/bundler/runtime.rb:81:in
block (2 levels) in require'
6: from C:/Ruby26-x64/lib/ruby/2.6.0/bundler/runtime.rb:81:in require' 5: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/sqlite3-1.3.13-x64-mingw32/lib/sqlite3.rb:2:in
<top (required)>'
4: 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)>' 3: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/activesupport-6.0.2.1/lib/active_support/dependencies.rb:325:in
require'
2: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/activesupport-6.0.2.1/lib/active_support/dependencies.rb:291:in load_dependency' 1: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/activesupport-6.0.2.1/lib/active_support/dependencies.rb:325:in
block in require'
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/activesupport-6.0.2.1/lib/active_support/dependencies.rb:325:in `require': cannot load such file -- sqlite3/sqlite3_native (LoadError)
試したこと
bundler installやsqlite3のインストールのやり直しなど、
色々試してみたのですがダメでした。
補足情報(FW/ツールのバージョンなど)
ruby 2.6.5p114 (2019-10-01 revision 67812) [x64-mingw32]
Rails 6.0.2.1
Bundler version 1.17.2
sqlite3 --version 3.6.20
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。