Closed jrochkind closed 9 years ago
Okay, I seem to have solved it by rm -rf ~/.gem/ruby/2.0.0
, and then re-loading chruby, switching to 2.0.0-p576, and reinstalling all gems I need from scratch, starting with bundler itself.
I don't really understand what happened though, and if a bug in chruby was perhaps triggered?
@jrochkind I believe you are hitting #163, where gems are shared among ruby 2.0 patchlevels and the rubygems binstubs are looking for the prior ruby. Several solutions exist in that issue but I typically just do what you did, rm -rf the /Users/jrochkind/.gem/ruby/2.0.0/
directory and bundle to install the gems with the new 2.0 patch version. Note: this will remove all gems that are not in that app's bundle so the --pristine option might be better for you. YMMV.
@jrochkind try running gem pristin --only-executables --env-shebang
to re-generate the rubygem bin stubs.
Closing this. Adding --env-shebang
to ~/.gemrc
is also a viable workaround until rubygems defaults to #!/usr/bin/env
.
I can't quite understand what's going on. I installed
ruby-2.0.0-p576
, and could switch to it withchruby
, butbundle install
kept trying to useruby-2.0.0-p247
instead.I deleted
ruby-2.0.0-p247
entirely, and for good measure deleted p576 too and re-installed it. Now p576 is the only ruby 2.0.0 I have. But when I switch to it with chruby and trybundle install
-- it still keeps trying to useruby-2.0.0-p247
, which does not exist, and complaining about it. I can't figure out what would even possibly beremembering
p247.Any idea what's going on and what I do about it? Thanks!