gpt4 book ai didi

ruby-on-rails - carrierwave gem 上的捆绑安装错误

转载 作者:数据小太阳 更新时间:2023-10-29 07:46:54 25 4
gpt4 key购买 nike

我正在尝试安装 gem(carrierwave),当我使用命令 bundle install 时出现如下错误:

Invalid gemspec in [/home/sup1re/superrrr/vendor/bundle/ruby/1.8/specifications/carrierwave-0.6.2.gemspec]: Illformed requirement ["# 1.1.4"]

Installing carrierwave (0.6.2) Invalid gemspec in [/home/sup1re/superrrr/vendor/bundle/ruby/1.8/specifications/carrierwave-0.6.2.gemspec]: Illformed requirement ["# 1.1.4"]

我还尝试运行“gem update --system

我得到了这个错误

enter image description here

[1]: http://i.stack.imgur.com/RUxW9.png

规范:

ruby 1.8.7 (2011-02-18 patchlevel 334) [x86_64-linux]

Rails 3.2.3

Gem version is 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

最佳答案

您需要更新 Rubygems,这不是载波问题。sudo gem update --systemgem update --system 取决于您的设置。

关于ruby-on-rails - carrierwave gem 上的捆绑安装错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10528043/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com