前提・実現したいこと
ruby on railsを用いたwebアプリの開発をしようと学んでいます。
rails new MyApp
を実行し、
cd MyApp
rails server
を実行しましたが、サーバーが動かず、以下のメッセージ(1)が出てきました。
また、rails -vをこのディレクトリ上で行うと、(2)のメッセージが出ます。
発生している問題・エラーメッセージ
1. Could not find gem 'rails (~> 5.2.1)' in any of the gem sources listed in your Gemfile. Run `bundle install` to install missing gems. 2. Could not find rails-5.2.1 in any of the sources Run `bundle install` to install missing gems.
試したこと
ホームディレクトリ上では、rails -vなどrailsコマンドが使えました。
また、メッセージの通り
bundle install
bundle update
を行いましたが、変化はありませんでした。
補足情報(FW/ツールのバージョンなど)
ruby -v 2.4.1
rails -v 5.2.1
bundle -v 1.16.4