json-1.7.7 vs json-1.8.1 Gem::LoadError #109

crucialfelix opened this Issue Jan 31, 2014 · 1 comment

1 participant


I'm not really a ruby person, but this seems to be a json lib conflict.


    crucial@crucialbook ~/Sites/capsule.me/frontend/phoneapp$ ios login
    invalid command. Use --help for more information
    /Library/Ruby/Site/2.0.0/rubygems/specification.rb:1989:in `raise_if_conflicts': can't activate json-1.7.7, already activated json-1.8.1 (Gem::LoadError)
            from /Library/Ruby/Site/2.0.0/rubygems/specification.rb:1238:in `activate'
            from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:96:in `block in require'
            from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:95:in `each'
            from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:95:in `require'
            from /Library/Ruby/Gems/2.0.0/gems/cupertino-0.9.5/lib/cupertino/provisioning_portal/agent.rb:4:in `<top (required)>'
            from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:73:in `require'
            from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:73:in `require'
            from /Library/Ruby/Gems/2.0.0/gems/cupertino-0.9.5/lib/cupertino/provisioning_portal.rb:55:in `<top (required)>'
            from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:73:in `require'
            from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:73:in `require'
            from /Library/Ruby/Gems/2.0.0/gems/cupertino-0.9.5/bin/ios:21:in `<top (required)>'
            from /usr/bin/ios:23:in `load'
            from /usr/bin/ios:23:in `<main>'

I guess it is nothing that cupertino does wrong, its just how life is with gems.

I made a Gemfile:

source 'https://rubygems.org'
# gem 'json', '1.7.7'
gem 'cupertino'

use bundle to isolate the environment:

bundle install

bundle exec ios login

and life goes on.

thanks !

@JuanitoFatas JuanitoFatas added a commit to JuanitoFatas/autoscaler that referenced this issue Aug 6, 2014
@JuanitoFatas JuanitoFatas Install cupertino and transpec.
transpec could not run due to this error:


So I have to add it to Gemfile.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment