前提・実現したいこと
Rails tutorialを進める上で、rails serverの実行をしたいです。
発生している問題・エラーメッセージ
$ cd hello_app/
$ bundle install
だと、
The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java
.
Fetching gem metadata from https://rubygems.org/..........
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies...
Bundler could not find compatible versions for gem
"activesupport":
In snapshot (Gemfile.lock):
activesupport (= 5.2.1.1)
In Gemfile:
rails (= 5.1.6) was resolved to 5.1.6, which depends on
activesupport (= 5.1.6)
coffee-rails (= 4.2.2) was resolved to 4.2.2, which depends
on
railties (>= 4.0.0) was resolved to 5.2.1.1, which depends
on
activesupport (= 5.2.1.1)
Running bundle update
will rebuild your snapshot from scratch,
using only
the gems in your Gemfile, which may resolve the conflict.
とでます。
その上で、
$ cd ~/environment/hello_app/
$ rails server
をすると、
Could not find gem 'puma (= 3.9.1)' in any of the gem sources listed in your Gemfile.
Run bundle install
to install missing gems.
とでます。
あと、tutorialをしている中で、
最新のバージョン(5.2.1)ではなく、(5.1.6)でインストールと実行をしてしまった経緯があります。
該当のソースコード
Ruby on Rails cloud9 ### 試したこと bundle installと rails serverです あと、なぜか、マックに入れていたXcodeがdockで❓になっていました。 ファインダーから開き直し、今は普通に戻りました。 ### 補足情報(FW/ツールのバージョンなど) awsのcloud9を使っています。 今、自分の使っているものに何が入ってて、何が入ってないのかわかりません。 初心者です。 わかりやすく答えていただけると幸いです。よろしくお願いします。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。