我正在尝试安装 gem(carrierwave),当我使用命令 bundle install 时出现如下错误:
[/home/sup1re/superrrr/vendor/bundle/ruby/1.8/specifications/carrierwave-0.6.2.gemspec] 中的无效 gemspec:不正确的要求 ["# 1.1.4"]
和
在 [/home/sup1re/superrrr/vendor/bundle/ruby/1.8/specifications/carrierwave-0.6.2.gemspec] 中安装carrierwave(0.6.2)无效的gemspec:错误的要求[“#1.1.4”]
我也尝试运行“ gem update --system
”
我得到了这个错误
[1]:http://i.stack.imgur.com/RUxW9.png
眼镜:
ruby 1.8.7 (2011-02-18 补丁级别 334) [x86_64-linux]
导轨 3.2.3
宝石版本是 1.8.5
我想知道我的 Gemfile 有什么问题。
非常欢迎任何意见。谢谢你。
这是导致错误的carrierwave-0.6.2.gemspec
# -*- encoding: utf-8 -*-
Gem::Specification.new do |s|
s.name = %q{carrierwave}
s.version = "0.6.2"
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = [%q{Jonas Nicklas}]
s.date = %q{2012-04-12}
s.description = %q{Upload files in your Ruby applications, map them to a range of ORMs, store them on different backends.}
s.email = [%q{jonas.nicklas@gmail.com}]
s.extra_rdoc_files = [%q{README.md}]
s.files = [%q{README.md}]
s.homepage = %q{https://github.com/jnicklas/carrierwave}
s.rdoc_options = [%q{--main}]
s.require_paths = [%q{lib}]
s.rubyforge_project = %q{carrierwave}
s.rubygems_version = %q{1.8.5}
s.summary = %q{Ruby file upload library}
if s.respond_to? :specification_version then
s.specification_version = 3
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
s.add_runtime_dependency(%q<activesupport>, [">= 3.2.0"])
s.add_runtime_dependency(%q<activemodel>, [">= 3.2.0"])
s.add_development_dependency(%q<mysql2>, [">= 0"])
s.add_development_dependency(%q<rails>, [">= 3.2.0"])
s.add_development_dependency(%q<cucumber>, ["#<YAML::Syck::DefaultKey:0x718a860d0a98> 1.1.4"])
s.add_development_dependency(%q<json>, [">= 0"])
s.add_development_dependency(%q<rspec>, ["~> 2.0"])
s.add_development_dependency(%q<sham_rack>, [">= 0"])
s.add_development_dependency(%q<timecop>, [">= 0"])
s.add_development_dependency(%q<fog>, [">= 1.3.1"])
s.add_development_dependency(%q<mini_magick>, [">= 0"])
s.add_development_dependency(%q<rmagick>, [">= 0"])
else
s.add_dependency(%q<activesupport>, [">= 3.2.0"])
s.add_dependency(%q<activemodel>, [">= 3.2.0"])
s.add_dependency(%q<mysql2>, [">= 0"])
s.add_dependency(%q<rails>, [">= 3.2.0"])
s.add_dependency(%q<cucumber>, ["#<YAML::Syck::DefaultKey:0x718a860d0a98> 1.1.4"])
s.add_dependency(%q<json>, [">= 0"])
s.add_dependency(%q<rspec>, ["~> 2.0"])
s.add_dependency(%q<sham_rack>, [">= 0"])
s.add_dependency(%q<timecop>, [">= 0"])
s.add_dependency(%q<fog>, [">= 1.3.1"])
s.add_dependency(%q<mini_magick>, [">= 0"])
s.add_dependency(%q<rmagick>, [">= 0"])
end
else
s.add_dependency(%q<activesupport>, [">= 3.2.0"])
s.add_dependency(%q<activemodel>, [">= 3.2.0"])
s.add_dependency(%q<mysql2>, [">= 0"])
s.add_dependency(%q<rails>, [">= 3.2.0"])
s.add_dependency(%q<cucumber>, ["#<YAML::Syck::DefaultKey:0x718a860d0a98> 1.1.4"])
s.add_dependency(%q<json>, [">= 0"])
s.add_dependency(%q<rspec>, ["~> 2.0"])
s.add_dependency(%q<sham_rack>, [">= 0"])
s.add_dependency(%q<timecop>, [">= 0"])
s.add_dependency(%q<fog>, [">= 1.3.1"])
s.add_dependency(%q<mini_magick>, [">= 0"])
s.add_dependency(%q<rmagick>, [">= 0"])
end
end