前提・実現したいこと
・rails serverを起動したいです。
動作環境
・Windows10
・ruby 2.4.5p335[x64-mingw32]
・Rails 5.2.2
発生している問題・エラーメッセージ
rubyとrailsをインストールしてLeagueというアプリを作りました。
Leagueディレクトリに移動して、rails serverとすると以下の文言が出ます。
Could not find gem 'sqlite3 x64-mingw32' in any of the gem sources listed in your Gemfile. Run `bundle install` to install missing gems.
試したこと
bundle install
を実行。すると、以下のメッセージが出ました。
ーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー
extconf failed, exit code 1
Gem files will remain installed in
C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/sqlite3-1.4.0 for inspection.
Results logged to
C:/Ruby24-x64/lib/ruby/gems/2.4.0/extensions/x64-mingw32/2.4.0/sqlite3-1.4.0/gem_make.out
An error occurred while installing sqlite3 (1.4.0), and Bundler cannot continue.
Make sure that gem install sqlite3 -v '1.4.0' --source 'https://rubygems.org/'
succeeds before bundling.
In Gemfile:
sqlite3
ーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー
試したこと、その1
https://qiita.com/noranoko/items/907a276569f7f49bc564を参考に、
https://www.sqlite.org/download.htmlでsqlite-dll-win64-x64-3270100.zipをイントール後、
sqlite3.dllをC:\Ruby24-x64\binにコピーするも失敗。
試したこと、その2
https://teratail.com/questions/44920を参考に、
ーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー
$ gem uninstall -a sqlite3
$ gem install sqlite3 --platform=ruby
ーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー
を試すも、失敗。
試したこと、その3
https://www.kunihikokaneko.com/dblab/toolchain/sqlite3.html
一応、sqlite3 --versionとすると、バージョン情報が出る所まで来ましたが、
rails serverは起動せず失敗。

回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2019/02/25 07:56