前提・実現したいこと
Ruby on Railsの環境構築(Windows10)
発生している問題・エラーメッセージ
ProgateのRuby on Railsの環境構築をしてみよう!(Windows)のページの通りの手順で進めており、bundle installまで成功しましたが、"rails s"を入力すると以下のエラーメッセージが出て、localhost:3000にアクセスしても繋がりません。
C:\Users\こうへい\sample_app>rails s
Beginning in Rails 4, Rails ships with a rails
binstub at ./bin/rails that
should be used instead of the Bundler-generated rails
binstub.
If you are seeing this message, your binstub at ./bin/rails was generated by
Bundler instead of Rails.
You might need to regenerate your rails
binstub locally and add it to source
control:
rails app:update:bin # Bear in mind this generates other binstubs
# too that you may or may not want (like yarn)
If you already have Rails binstubs in source control, you might be
inadvertently overwriting them during deployment by using bundle install
with the --binstubs option.
If your application was created prior to Rails 4, here's how to upgrade:
bundle config --delete bin # Turn off Bundler's stub generator
rails app:update:bin # Use the new Rails executables
git add bin # Add bin/ to source control
You may need to remove bin/ from your .gitignore as well.
When you install a gem whose executable you want to use in your app,
generate it and add it to source control:
bundle binstubs some-gem-name
git add bin/new-executable
Could not find gem 'sqlite3 (~> 1.4) x64-mingw32' in any of the gem sources listed in your Gemfile.
Run bundle install
to install missing gems.
該当のソースコード
試したこと
RubyのバージョンをRuby 2.5以下に下げる
補足情報(FW/ツールのバージョンなど)
ruby 2.4.5
Bundler version 2.1.4
Rails 6.0.3.2
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2020/07/20 11:38
2020/07/20 13:30
2020/07/21 07:28
2020/07/21 09:23
2020/07/21 14:08