osx - How to resolve ruby gem conflict involving rake on mac? -
i attempting run rake under mac osx , getting below error.
$ rake --trace rake aborted! gem::conflicterror: unable activate releasy-0.2.2, because rake-10.3.2 conflicts rake (~> 0.9.2.2) /library/ruby/site/2.0.0/rubygems/specification.rb:2112:in `raise_if_conflicts' /library/ruby/site/2.0.0/rubygems/specification.rb:1280:in `activate' /library/ruby/site/2.0.0/rubygems.rb:198:in `rescue in try_activate' /library/ruby/site/2.0.0/rubygems.rb:195:in `try_activate' /library/ruby/site/2.0.0/rubygems/core_ext/kernel_require.rb:126:in `rescue in require' /library/ruby/site/2.0.0/rubygems/core_ext/kernel_require.rb:39:in `require' /users/development/ruby/rakefile:5:in `<top (required)>' /library/ruby/gems/2.0.0/gems/rake-10.3.2/lib/rake/rake_module.rb:28:in `load' /library/ruby/gems/2.0.0/gems/rake-10.3.2/lib/rake/rake_module.rb:28:in `load_rakefile' /library/ruby/gems/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:687:in `raw_load_rakefile' /library/ruby/gems/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:94:in `block in load_rakefile' /library/ruby/gems/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:176:in `standard_exception_handling' /library/ruby/gems/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:93:in `load_rakefile' /library/ruby/gems/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:77:in `block in run' /library/ruby/gems/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:176:in `standard_exception_handling' /library/ruby/gems/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:75:in `run' /library/ruby/gems/2.0.0/gems/rake-10.3.2/bin/rake:33:in `<top (required)>' /usr/bin/rake:23:in `load' /usr/bin/rake:23:in `<main>'
gem list --local displays
rake (10.3.2, 0.9.6, 0.9.2.2)
how resolve conflict between rake gem installed , rake gem deployed osx? should delete newest update or there way specify in rake file use newest version , ignore conflict?
if trying run rake
within project uses gemfile
, try this:
bundle exec rake --trace
this load version of rake required project, instead of 1 possibly conflict (like osx default /usr/bin/rake binary).
if bundle
command isn't found, this:
gem install bundler
also, if recent rails app, can use provided binstubs instead this:
bin/rake --trace
if none of works, try using rvm, chruby, or rbenv manage ruby environments separately operating-system provided ruby.
Comments
Post a Comment