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

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

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

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

Ruby on Rails 4

Ruby on Rails4はRubyによって書かれたオープンソースのウェブフレームワークです。 Ruby on Railsは「設定より規約」の原則に従っており、効率的に作業を行うために再開発を行う必要をなくしてくれます。

Q&A

解決済

2回答

3967閲覧

railsなのにjavaと出てくる

sunagakannta

総合スコア29

Ruby on Rails

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

Ruby on Rails 4

Ruby on Rails4はRubyによって書かれたオープンソースのウェブフレームワークです。 Ruby on Railsは「設定より規約」の原則に従っており、効率的に作業を行うために再開発を行う必要をなくしてくれます。

1グッド

2クリップ

投稿2017/02/16 23:06

やろうとしていること

現在soliduを使ってecサイトの勉強をしています。

教えて欲しいこと

bundle exec rails g spree:install --migrate=false --sample=false --seed=false

このコマンドを実行したいのですが、実行すると、

Could not locate Gemfile or .bundle/ directory

このように表示されてしまいます。これを解決したいです。
gemファイルは存在しています。

rails new

した時にこのようなメッセージが表示されます。
これが原因と考えているのですが、どうすれば対処できるでしょうか?

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`.

やってみたこと

bundle install,bundle update, gem installを演ってみましたがだめでした。

ご教授お願いします。

DrqYuto👍を押しています

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

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

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

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

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

guest

回答2

0

自己解決

なんでかわかりませんが、治っていました・・・

投稿2017/04/08 07:36

sunagakannta

総合スコア29

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

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

0

以下は実施しましたか?

bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java

投稿2017/02/16 23:10

moonphase

総合スコア6621

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

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

sunagakannta

2017/02/16 23:19

実行しまいしましたら、 このようなエラーが表示されます Bundler could not find compatible versions for gem "i18n": In snapshot (Gemfile.lock): i18n (= 0.8.0) In Gemfile: solidus x86-mingw32 was resolved to 1.0.0, which depends on solidus_core (= 1.0.0) x86-mswin32 was resolved to 1.0.0, which depends on activemerchant (~> 1.48.0) x86-mswin32 was resolved to 1.48.0, which depends on i18n (>= 0.6.9) solidus x86-mingw32 was resolved to 1.0.0, which depends on solidus_core (= 1.0.0) x86-mswin32 was resolved to 1.0.0, which depends on activemerchant (~> 1.48.0) x86-mswin32 was resolved to 1.48.0, which depends on i18n (>= 0.6.9) x86-mingw32 solidus x86-mingw32 was resolved to 1.0.0, which depends on solidus_core (= 1.0.0) x86-mswin32 was resolved to 1.0.0, which depends on activemerchant (~> 1.48.0) x86-mswin32 was resolved to 1.48.0, which depends on i18n (>= 0.6.9) x86-mswin32 solidus x86-mingw32 was resolved to 1.0.0, which depends on solidus_core (= 1.0.0) x86-mswin32 was resolved to 1.0.0, which depends on activemerchant (~> 1.48.0) x86-mswin32 was resolved to 1.48.0, which depends on i18n (>= 0.6.9) x64-mingw32 solidus x86-mingw32 was resolved to 1.0.0, which depends on solidus_core (= 1.0.0) x86-mswin32 was resolved to 1.0.0, which depends on activemerchant (~> 1.48.0) x86-mswin32 was resolved to 1.48.0, which depends on i18n (>= 0.6.9) java solidus x86-mingw32 was resolved to 1.0.0, which depends on solidus_core (= 1.0.0) x86-mswin32 was resolved to 1.0.0, which depends on monetize (~> 1.1) was resolved to 1.1.0, which depends on money (~> 6.5.0) was resolved to 6.5.0, which depends on i18n (<= 0.7.0, >= 0.6.4) java solidus x86-mingw32 was resolved to 1.0.0, which depends on solidus_core (= 1.0.0) x86-mswin32 was resolved to 1.0.0, which depends on monetize (~> 1.1) was resolved to 1.1.0, which depends on money (~> 6.5.0) was resolved to 6.5.0, which depends on i18n (<= 0.7.0, >= 0.6.4) solidus x86-mingw32 was resolved to 1.0.0, which depends on solidus_core (= 1.0.0) x86-mswin32 was resolved to 1.0.0, which depends on monetize (~> 1.1) was resolved to 1.1.0, which depends on money (~> 6.5.0) was resolved to 6.5.0, which depends on i18n (<= 0.7.0, >= 0.6.4) x86-mingw32 solidus x86-mingw32 was resolved to 1.0.0, which depends on solidus_core (= 1.0.0) x86-mswin32 was resolved to 1.0.0, which depends on monetize (~> 1.1) was resolved to 1.1.0, which depends on money (~> 6.5.0) was resolved to 6.5.0, which depends on i18n (<= 0.7.0, >= 0.6.4) x86-mswin32 solidus x86-mingw32 was resolved to 1.0.0, which depends on solidus_core (= 1.0.0) x86-mswin32 was resolved to 1.0.0, which depends on monetize (~> 1.1) was resolved to 1.1.0, which depends on money (~> 6.5.0) was resolved to 6.5.0, which depends on i18n (<= 0.7.0, >= 0.6.4) x64-mingw32 rails-i18n was resolved to 5.0.3, which depends on i18n (~> 0.7) x86-mingw32 rails-i18n was resolved to 5.0.3, which depends on i18n (~> 0.7) x86-mswin32 rails-i18n was resolved to 5.0.3, which depends on i18n (~> 0.7) x64-mingw32 rails-i18n was resolved to 5.0.3, which depends on i18n (~> 0.7) java rails-i18n was resolved to 5.0.3, which depends on i18n (~> 0.7) solidus x86-mingw32 was resolved to 1.0.0, which depends on solidus_core (= 1.0.0) x86-mswin32 was resolved to 1.0.0, which depends on ransack (~> 1.6.0) was resolved to 1.6.6, which depends on i18n java solidus x86-mingw32 was resolved to 1.0.0, which depends on solidus_core (= 1.0.0) x86-mswin32 was resolved to 1.0.0, which depends on ransack (~> 1.6.0) was resolved to 1.6.6, which depends on i18n solidus x86-mingw32 was resolved to 1.0.0, which depends on solidus_core (= 1.0.0) x86-mswin32 was resolved to 1.0.0, which depends on ransack (~> 1.6.0) was resolved to 1.6.6, which depends on i18n x86-mingw32 solidus x86-mingw32 was resolved to 1.0.0, which depends on solidus_core (= 1.0.0) x86-mswin32 was resolved to 1.0.0, which depends on ransack (~> 1.6.0) was resolved to 1.6.6, which depends on i18n x86-mswin32 solidus x86-mingw32 was resolved to 1.0.0, which depends on solidus_core (= 1.0.0) x86-mswin32 was resolved to 1.0.0, which depends on ransack (~> 1.6.0) was resolved to 1.6.6, which depends on i18n x64-mingw32 Running `bundle update` will rebuild your snapshot from scratch, using only the gems in your Gemfile, which may resolve the conflict. bundle updateをしてみると Bundler could not find compatible versions for gem "rails": In Gemfile: と表示されてしまいます
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

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

ただいまの回答率
85.50%

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

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

質問する

関連した質問