由于json-2.1.0与json(〜> 1.4)(Gem :: ConflictError)冲突,因此无法激活aws-sdk-v1-1.67.0

时间:2018-08-29 18:50:19

标签: ruby rubygems

有人知道如何解决这个红宝石错误吗? 我尝试搜索答案,但Google上没有太多信息。 任何人都有解决此问题的想法吗?

    computer:adminsite abc$ ruby script/build.rb -a ~/Library/Android/sdk/ -t -v -p -f -c HJMKCT8H -s /Users/abc/code/cloudTv/OneMainstream/ -b /tmp/ -d amazon_fire_tv
Traceback (most recent call last):
    12: from script/build.rb:12:in `<main>'
    11: from /Users/abc/.rvm/rubies/ruby-2.5.1/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
    10: from /Users/abc/.rvm/rubies/ruby-2.5.1/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
     9: from /Users/abc/1ms-platform-master/adminsite/lib/build.rb:13:in `<top (required)>'
     8: from /Users/abc/.rvm/rubies/ruby-2.5.1/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
     7: from /Users/abc/.rvm/rubies/ruby-2.5.1/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
     6: from /Users/abc/1ms-platform-master/adminsite/lib/amz/s3.rb:2:in `<top (required)>'
     5: from /Users/abc/.rvm/rubies/ruby-2.5.1/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:39:in `require'
     4: from /Users/abc/.rvm/rubies/ruby-2.5.1/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:128:in `rescue in require'
     3: from /Users/abc/.rvm/rubies/ruby-2.5.1/lib/ruby/site_ruby/2.5.0/rubygems.rb:217:in `try_activate'
     2: from /Users/abc/.rvm/rubies/ruby-2.5.1/lib/ruby/site_ruby/2.5.0/rubygems.rb:224:in `rescue in try_activate'
     1: from /Users/abc/.rvm/rubies/ruby-2.5.1/lib/ruby/site_ruby/2.5.0/rubygems/specification.rb:1441:in `activate'
/Users/abc/.rvm/rubies/ruby-2.5.1/lib/ruby/site_ruby/2.5.0/rubygems/specification.rb:2332:in `raise_if_conflicts': Unable to activate aws-sdk-v1-1.67.0, because json-2.1.0 conflicts with json (~> 1.4) (Gem::ConflictError)
computer:adminsite abc$

1 个答案:

答案 0 :(得分:-1)

没有提供有关您的项目的信息。我想您正在使用Rails / Capistrano / AWS(就像我一样),这解决了我的问题:

使用该宝石代替https://github.com/fernandocarletti/capistrano-aws

https://github.com/forward3d/cap-ec2