gem command raises UnsatisfiableDependencyError in rails project folder, but works with sudo, or when called from another folder -
i have rails project in myapp folder.
# in my_app folder $ gem -v ... ruby/2.1.0/rubygems/resolver.rb:406:in `resolve_for_zero': unable resolve dependency: 'rails (= 4.1.5, = 4.1.5)' requires 'bundler (< 2.0, >= 1.3.0)' (gem::unsatisfiabledependencyerror) ... $ sudo gem -v password: 2.4.2 # revoke sudo privileges $ sudo -k $ cd # in home directory $ gem -v 2.4.2
the gemfile of rails project here , gemfile.lock here. realize has gemfile, have no thought how prepare it.
there prepare similar, worse issue #886 in rubygems 2.4.2 this commit . have upgraded rubygems 2.4.2 (i had utilize sudo gem update --system
gem update --system
gave same error @ time), current issue still persists.
i had fixed closely related rubygems problem setting export rubygems_gemdeps=-
in .bash_profile
, causing error. issue has since been fixed update, , bash setting causing current problem described above. removing line .bash_profile
fixed problem.
ruby-on-rails gem rubygems gemfile
No comments:
Post a Comment