Paperclipを使い画像のアップロード機能を制作しようとしているのですが、
bundle updateをしたらエラーが出てしまいました。
エラーの内容、解決方法がお分かりになる方がいらっしゃいましたら是非お力添えをお願いします。
ちなみに現在のrails rubyのバージョンはこちらです。
ruby 2.0.0p648
rails 4.0.5です。
まずはPaperclipの使用に必要なImagemagickをインストールしました。
$ sudo apt-get install imagemagick コード
その後、githubから最新バージョンを指定してpaperclipをインストールするために,
gemfileを開き、この1行を追加しました。
gem 'paperclip', github: 'thoughtbot/paperclip’ コード
これによりgemfileはこのようになっています。
source 'https://rubygems.org' ruby '2.0.0' gem 'paperclip', github: 'thoughtbot/paperclip' gem 'rails', '4.0.5' gem 'bootstrap-sass', '3.3.1' gem 'sprockets', '2.11.0' gem 'devise', '3.4.1' gem 'faker', '1.1.2' gem 'will_paginate', '3.0.4' gem 'will_paginate-bootstrap', '1.0.1' group :development do gem 'sqlite3', '1.3.9' end gem 'sass-rails', '4.0.3' gem 'uglifier', '2.5.3' gem 'coffee-rails', '4.0.1' gem 'jquery-rails', '3.1.2' gem 'turbolinks', '2.5.1' gem 'jbuilder', '1.5.3' group :doc do gem 'sdoc', '0.4.1', require: false end コード
このあとにbundle updateを実行するとこのような文言になりました。
kato1994:~/workspace/app
1The git source `git://github.com/thoughtbot/paperclip.git` uses the `git` protocol, which transmits data without encryption. Disable this warning with `bundle config git.allow_insecure true`, or switch to the `https` protocol to keep your data secure. 2Fetching git://github.com/thoughtbot/paperclip.git 3Fetching gem metadata from https://rubygems.org/.......... 4Fetching gem metadata from https://rubygems.org/. 5Resolving dependencies... 6Bundler could not find compatible versions for 7gem "ruby": 8 In Gemfile: 9 ruby (~> 2.0.0.0) 10 11paperclip was resolved to 6.0.0, which 12depends on 13 ruby (>= 2.1.0) 14 15Could not find gem 'ruby (>= 2.1.0)', which 16is required by gem 'paperclip', in any of the 17relevant sources: 18 the local ruby installation 19コード
bundle installを実行するとこのようになります。
kato1994:~/workspace/app
1The git source `git://github.com/thoughtbot/paperclip.git` uses the `git` protocol, which transmits data without encryption. Disable this warning with `bundle config git.allow_insecure true`, or switch to the `https` protocol to keep your data secure. 2Fetching git://github.com/thoughtbot/paperclip.git 3Fetching gem metadata from https://rubygems.org/.......... 4Fetching gem metadata from https://rubygems.org/. 5Resolving dependencies... 6Bundler could not find compatible versions for 7gem "activesupport": 8 In snapshot (Gemfile.lock): 9 activesupport (= 4.0.5) 10 11 In Gemfile: 12paperclip was resolved to 6.0.0, which 13depends on 14 activesupport (>= 4.2.0) 15 16rails (= 4.0.5) was resolved to 4.0.5, 17which depends on 18 activesupport (= 4.0.5) 19 20Running `bundle update` will rebuild your 21snapshot from scratch, using only 22the gems in your Gemfile, which may resolve 23the conflict. 24コード
この2つのエラー文の内容を検索してみても参考になりそうなものが見つからず困っています。
経験が浅いものですのでどうか参考になる回答をお願いします。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。