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

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

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

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

Ruby

Rubyはプログラミング言語のひとつで、オープンソース、オブジェクト指向のプログラミング開発に対応しています。

Q&A

解決済

2回答

1512閲覧

bundle installでエラーがでる

kozica

総合スコア58

Ruby on Rails 5

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

Ruby

Rubyはプログラミング言語のひとつで、オープンソース、オブジェクト指向のプログラミング開発に対応しています。

0グッド

0クリップ

投稿2018/10/04 08:52

編集2018/10/04 09:46

bundle installで下記のようなエラーがでてきます

bundle updateしろというので
bundle updateしたら,bundle update activerecordしろと言われ
bundle update activerecordしたらbundle updateしろと振り出しに戻ります

これはどうすればよいのでしょうか?

どなたも解決ができなようですが、わかる方いませんでしょうか?

$ bundle install Your Gemfile lists the gem settingslogic (>= 0) more than once. You should probably keep only one of them. While it's not a problem now, it could cause errors if you change the version of one of them later. Fetching gem metadata from https://rubygems.org/....... Fetching gem metadata from https://rubygems.org/. Resolving dependencies... Bundler could not find compatible versions for gem "rspec-core": In snapshot (Gemfile.lock): rspec-core (= 3.8.0) In Gemfile: guard-rspec was resolved to 4.7.3, which depends on rspec (< 4.0, >= 2.99.0) was resolved to 3.8.0, which depends on rspec-core (~> 3.8.0) rspec-rails (~> 3.7.2) was resolved to 3.7.2, which depends on rspec-core (~> 3.7.0) Running `bundle update` will rebuild your snapshot from scratch, using only the gems in your Gemfile, which may resolve the conflict. $ bundle update Your Gemfile lists the gem settingslogic (>= 0) more than once. You should probably keep only one of them. While it's not a problem now, it could cause errors if you change the version of one of them later. Fetching gem metadata from https://rubygems.org/....... Fetching gem metadata from https://rubygems.org/. Resolving dependencies................ Using rake 12.3.1 Using concurrent-ruby 1.0.5 Using i18n 0.9.5 Using multi_json 1.13.1 Using activesupport 3.2.14 Using builder 3.0.4 Using activemodel 3.2.14 Using erubis 2.7.0 Using journey 1.0.4 Using rack 1.4.7 Using rack-cache 1.8.0 Using rack-test 0.6.3 Using hike 1.2.3 Using tilt 1.4.1 Using sprockets 2.2.3 Using actionpack 3.2.14 Using mime-types 1.25.1 Using polyglot 0.3.5 Using treetop 1.4.15 Using mail 2.5.5 Using actionmailer 3.2.14 Fetching activerecord 3.2.14 Downloading activerecord-3.2.14 revealed dependencies not in the API or the lockfile (activesupport (= 3.2.14), activemodel (= 3.2.14), arel (~> 3.0.2), tzinfo (~> 0.3.29)). Either installing with `--full-index` or running `bundle update activerecord` should fix the problem. In Gemfile: acts_as_list was resolved to 0.9.16, which depends on activerecord $ bundle update activerecord Your Gemfile lists the gem settingslogic (>= 0) more than once. You should probably keep only one of them. While it's not a problem now, it could cause errors if you change the version of one of them later. Fetching gem metadata from https://rubygems.org/....... Fetching gem metadata from https://rubygems.org/. Resolving dependencies... Bundler could not find compatible versions for gem "rspec-core": In snapshot (Gemfile.lock): rspec-core (= 3.8.0) In Gemfile: guard-rspec was resolved to 4.7.3, which depends on rspec (< 4.0, >= 2.99.0) was resolved to 3.8.0, which depends on rspec-core (~> 3.8.0) rspec-rails (~> 3.7.2) was resolved to 3.7.2, which depends on rspec-core (~> 3.7.0) Running `bundle update` will rebuild your snapshot from scratch, using only the gems in your Gemfile, which may resolve the conflict.

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

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

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

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

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

退会済みユーザー

退会済みユーザー

2018/10/04 08:55

多少は自分で調べてから試したことを添えて質問したほうがいいと思います。丸投げが多い印象を受けます。
kozica

2018/10/04 08:56

半日調べてます、、、
退会済みユーザー

退会済みユーザー

2018/10/04 08:57

ではなおさら試したことを添えて質問したほうがいいと思いますよ。
kozica

2018/10/04 08:59

ご指摘ありがとうございます。試したことは記載しておりますのでご確認頂けると幸いです
guest

回答2

0

guard-rspecrspecに依存していて、そのrspecver3.8.xのrspec-coreに依存しています。
rspec-railsver3.7.xのrspec-coreに依存しています。
このあたりからバージョン違いのrspec-coreをインストールしようとしているので
どっちかに合わせなさいというエラーが発生しているようです。

なので、rspec-coreに依存しているrspecrspec-railsをupdateすれば良さそうです。

bundle update rspec-rails rspec

投稿2018/10/04 10:34

dice142

総合スコア5158

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

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

kozica

2018/10/05 05:28

回答ありがとうございます。 依存関係を色々試したところ、bundlerのバージョンの問題でした。 bundlerのバージョンを下げることで解決できました。 回答して頂きありがとうございました!
guest

0

自己解決

bundlerのバージョンを下げて解決

投稿2018/10/05 05:44

kozica

総合スコア58

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

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

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

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

ただいまの回答率
85.50%

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

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

質問する

関連した質問