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

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

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

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

Q&A

解決済

1回答

1531閲覧

bundle install ができない

hiei1

総合スコア52

Ruby on Rails 6

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

0グッド

0クリップ

投稿2022/04/27 23:38

bundle installをしたのですが

err文

1Resolving dependencies... 2Bundler could not find compatible versions for gem "actionmailbox": 3 In snapshot (Gemfile.lock): 4 actionmailbox (= 6.0.4) 5 6 In Gemfile: 7 rails (~> 6.0.4) was resolved to 6.0.4.8, which depends on 8 actionmailbox (= 6.0.4.8) 9 10Running `bundle update` will rebuild your snapshot from scratch, using only 11the gems in your Gemfile, which may resolve the conflict.

Gemfile

1source 'https://rubygems.org' 2git_source(:github) { |repo| "https://github.com/#{repo}.git" } 3 4gem 'rails', '~>6.0.4' 5gem 'puma', '~>4.3.6' 6gem 'sass-rails', '~>5.1.0' 7gem 'webpacker', '~>4.0.7' 8gem 'turbolinks', '~>5.2.0' 9gem 'jbuilder', '~>2.9.1' 10gem 'bootsnap', '~>1.10.3', require: false 11 12group :development, :test do 13 gem 'sqlite3', '1.4.1' 14 gem 'byebug', '11.0.1', platforms: [:mri, :mingw, :x64_mingw] 15end 16 17group :development do 18 gem 'web-console', '4.0.1' 19 gem 'listen', '3.1.5' 20 gem 'spring', '2.1.0' 21 gem 'spring-watcher-listen', '2.0.1' 22end 23 24group :test do 25 gem 'capybara', '3.28.0' 26 gem 'selenium-webdriver', '3.142.4' 27 gem 'webdrivers', '4.1.2' 28 gem 'rails-controller-testing', '1.0.4' 29 gem 'minitest', '5.15.0' 30 gem 'minitest-reporters', '1.3.8' 31 gem 'guard', '2.16.2' 32 gem 'guard-minitest', '2.4.6' 33end 34 35group :production do 36 gem 'pg', '1.1.4' 37end 38gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]

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

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

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

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

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

guest

回答1

0

ベストアンサー

Running `bundle update` will rebuild your snapshot from scratch, using only the gems in your Gemfile, which may resolve the conflict.

メッセージの通りbundle updateを実行しましょう。

投稿2022/04/28 00:54

maisumakun

総合スコア145121

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

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

hiei1

2022/04/28 01:03

bundle updateしても Fetching gem metadata from https://rubygems.org/........... Resolving dependencies... Bundler could not find compatible versions for gem "actionpack": In snapshot (Gemfile.lock): actionpack (>= 6.0.4.8) In Gemfile: rails (= 6.0.4.8) was resolved to 6.0.4.8, which depends on actionpack (= 6.0.4.8) rails (= 6.0.4.8) was resolved to 6.0.4.8, which depends on sprockets-rails (>= 2.0.0) was resolved to 3.4.2, which depends on actionpack (>= 5.2) Running `bundle update` will rebuild your snapshot from scratch, using only the gems in your Gemfile, which may resolve the conflict. Bundler could not find compatible versions for gem "activesupport": In snapshot (Gemfile.lock): activesupport (>= 6.0.4.8) In Gemfile: rails (= 6.0.4.8) was resolved to 6.0.4.8, which depends on activejob (= 6.0.4.8) was resolved to 6.0.4.8, which depends on globalid (>= 0.3.6) was resolved to 1.0.0, which depends on activesupport (>= 5.0) rails (= 6.0.4.8) was resolved to 6.0.4.8, which depends on activesupport (= 6.0.4.8) rails (= 6.0.4.8) was resolved to 6.0.4.8, which depends on actionpack (= 6.0.4.8) was resolved to 6.0.4.8, which depends on rails-dom-testing (~> 2.0) was resolved to 2.0.3, which depends on activesupport (>= 4.2.0) rails (= 6.0.4.8) was resolved to 6.0.4.8, which depends on sprockets-rails (>= 2.0.0) was resolved to 3.4.2, which depends on activesupport (>= 5.2) Running `bundle update` will rebuild your snapshot from scratch, using only the gems in your Gemfile, which may resolve the conflict. Bundler could not find compatible versions for gem "childprocess": In snapshot (Gemfile.lock): childprocess (>= 4.1.0) In Gemfile: selenium-webdriver (= 3.142.4) was resolved to 3.142.4, which depends on childprocess (< 3.0, >= 0.5) Running `bundle update` will rebuild your snapshot from scratch, using only the gems in your Gemfile, which may resolve the conflict. というエラーが出ます
maisumakun

2022/04/28 01:13

バージョンの組み合わせによって正しくバージョン解決できない事態が生じることがありますね… いったんGemfile.lockを削除するか別ファイル名にしてからbundle installしたらどうなりますか?
hiei1

2022/04/28 01:49

Fetching gem metadata from https://rubygems.org/........... Resolving dependencies... Bundler found conflicting requirements for the Ruby version: In Gemfile: Ruby capybara (= 3.28.0) was resolved to 3.28.0, which depends on Ruby (>= 2.4.0) guard (= 2.16.2) was resolved to 2.16.2, which depends on Ruby (>= 1.9.3) listen (= 3.1.5) was resolved to 3.1.5, which depends on Ruby (>= 2.2.3, ~> 2.2) pg (= 1.1.4) was resolved to 1.1.4, which depends on Ruby (>= 2.0.0) puma (= 4.3.6) was resolved to 4.3.6, which depends on Ruby (>= と出ますね selenium-webdriver (= 3.142.4) was resolved to 3.142.4, which depends on Ruby (>= 2.3) と出ますね
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

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

ただいまの回答率
85.50%

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

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

質問する

関連した質問