質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.46%
Ruby

Rubyはプログラミング言語のひとつで、オープンソース、オブジェクト指向のプログラミング開発に対応しています。

SQLite

SQLiteはリレーショナルデータベース管理システムの1つで、サーバーではなくライブラリとして使用されている。

Ruby on Rails

Ruby on Railsは、オープンソースのWebアプリケーションフレームワークです。「同じことを繰り返さない」というRailsの基本理念のもと、他のフレームワークより少ないコードで簡単に開発できるよう設計されています。

Q&A

1回答

2579閲覧

rails s のcannot load such file -- sqlite3/sqlite3_native (LoadError)を解決したい

nao101010

総合スコア0

Ruby

Rubyはプログラミング言語のひとつで、オープンソース、オブジェクト指向のプログラミング開発に対応しています。

SQLite

SQLiteはリレーショナルデータベース管理システムの1つで、サーバーではなくライブラリとして使用されている。

Ruby on Rails

Ruby on Railsは、オープンソースのWebアプリケーションフレームワークです。「同じことを繰り返さない」というRailsの基本理念のもと、他のフレームワークより少ないコードで簡単に開発できるよう設計されています。

0グッド

0クリップ

投稿2020/09/17 00:42

編集2020/09/17 01:10

前提・実現したいこと

ここに質問の内容を詳しく書いてください。
rubyで作ったプログラムをhtmlに組み込みたく、railsでサーバーを作ろうとしているのですが下記のエラーが出てしまいます。
このサイトを参考にしながら作っている初心者です。
リンク内容
みなさまの知恵をお貸し頂ければばと思います

発生している問題・エラーメッセージ

C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/sqlite3-1.3.13-x64-mingw32/lib/sqlite3.rb:4:in `require': 126: 指定されたモジュールが見つかりません。 - C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/sqlite3-1.3.13-x64-mingw32/lib/sqlite3/2.6/sqlite3_native.so (LoadError) cannot load such file -- sqlite3/sqlite3_native (LoadError)
エラーメッセージ ```C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/sqlite3-1.3.13-x64-mingw32/lib/sqlite3.rb:4:in `require': 126: 指定されたモジュールが見つかりません。 - C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/sqlite3-1.3.13-x64-mingw32/lib/sqlite3/2.6/sqlite3_native.so (LoadError) cannot load such file -- sqlite3/sqlite3_native (LoadError)

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.4/lib/rails/commands.rb:18:in `<top (required)>' 18: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-5.2.4.4/lib/rails/command.rb:46:in `invoke' 17: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-5.2.4.4/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.4/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.4/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.4/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.4/lib/rails/commands/server/server_command.rb:145:in `require' 9: from C:/Users/堀越 脩仁/sam/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': 126: 指定されたモジュールが見つかりません。 - C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/sqlite3-1.3.13-x64-mingw32/lib/sqlite3/2.6/sqlite3_native.so (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.4/lib/rails/commands.rb:18:in <top (required)>'
19: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-5.2.4.4/lib/rails/command.rb:46:in invoke' 18: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-5.2.4.4/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.4/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.4/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.4/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.4/lib/rails/commands/server/server_command.rb:145:in require' 10: from C:/Users/堀越 脩仁/sam/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)

試したこと

terataill/qiitaにある質問と解決策はあらかた試したのですが解決できません
ここに問題に対して試したことを記載してください。

補足情報(FW/ツールのバージョンなど)

windows10
ruby 2.6.6
Rails 5.2.4.4
ここにより詳細な情報を記載してください。

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

nao101010

2020/09/17 01:10

修正してみました。 こちらでよろしいでしょうか?
guest

回答1

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだベストアンサーが選ばれていません

会員登録して回答してみよう

アカウントをお持ちの方は

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.46%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問