前提・実現したいこと
railsチュートリアルの13章の画像アップロードのためのgemをインストールをしたいのですが上手くいきません。
リンク内容
Gemfileにgem 'carrierwave' '1.2.2', gem'mini_magick' '4.7.0', gem 'fog' '1.42'の3つを追加してbundle install
コマンドを打ち込みましたが、group production内に書き込んだgem 'fog' がインストールできません。
発生している問題・エラーメッセージ
Bundle complete! 30 Gemfile dependencies, 93 gems now installed. Gems in the group production were not installed. Use `bundle info [gemname]` to see where a bundled gem is installed.
該当のソースコード
source 'https://rubygems.org' git_source(:github) do |repo_name| repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/") "https://github.com/#{repo_name}.git" end # Bundle edge Rails instead: gem 'rails', github: 'rails/rails' gem 'rails', '5.1.6' gem 'bcrypt', '3.1.12' gem 'faker', '1.7.3' gem 'carrierwave', '1.2.2' gem 'mini_magick', '4.7.0' gem 'will_paginate', '3.1.6' gem 'bootstrap-will_paginate', '1.0.0' gem 'bootstrap-sass', '3.3.7' # Use Puma as the app server gem 'puma', '3.9.1' # Use SCSS for stylesheets # Use Uglifier as compressor for JavaScript assets gem 'uglifier', '3.2.0' # See https://github.com/rails/execjs#readme for more supported runtimes # gem 'therubyracer', platforms: :ruby # Use CoffeeScript for .coffee assets and views gem 'coffee-rails', '4.2.2' # jquery-rails gem 'jquery-rails', '4.3.1' # Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks gem 'turbolinks', '5.0.1' # Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder gem 'jbuilder', '2.7.0' # Use Redis adapter to run Action Cable in production # gem 'redis', '~> 4.0' # Use ActiveModel has_secure_password # gem 'bcrypt', '~> 3.1.7' # Use Capistrano for deployment # gem 'capistrano-rails', group: :development group :development, :test do # Use sqlite3 as the database for Active Record gem 'sqlite3', '1.3.13' # Call 'byebug' anywhere in the code to stop execution and get a debugger console gem 'byebug', '9.0.6', platform: :mri # Adds support for Capybara system testing and selenium driver gem 'capybara', '~> 2.13' gem 'selenium-webdriver' end group :development do # Access an IRB console on exception pages or by using <%= console %> anywhere in the code. gem 'web-console', '3.5.1' gem 'listen', '3.1.5' # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring gem 'spring', '2.0.2' gem 'spring-watcher-listen', '2.0.1' end group :test do gem 'rails-controller-testing', '1.0.2' gem 'minitest', '5.10.3' gem 'minitest-reporters', '1.1.14' gem 'guard', '2.13.0' gem 'guard-minitest', '2.4.4' end group :production do gem 'pg', '0.20.0' gem 'fog', '1.42' end # Windows does not include zoneinfo files, so bundle the tzinfo-data gem gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
試したこと
.bundle/config 内にある BUNDLE_WITHOUT: "production"の一文を削除してbundle installを再度入れましたが、下記のようにエラーが出ました。
An error occurred while installing ovirt-engine-sdk (4.3.0), and Bundler cannot continue.
Make sure that gem install ovirt-engine-sdk -v '4.3.0' --source 'https://rubygems.org/'
succeeds before bundling.
In Gemfile:
fog was resolved to 1.42.0, which depends on
fog-ovirt was resolved to 1.2.1, which depends on
ovirt-engine-sdk
補足情報(FW/ツールのバージョンなど)
ここにより詳細な情報を記載してください。
回答1件
あなたの回答
tips
プレビュー