Open schneems opened 5 years ago
There's a RubyGems issue ticket open for using --env-shebang
if File.dirname(Gem.ruby)
is in $PATH
. Here's a chruby issue that discusses a proposal for intentionally sharing gems between Rubies of the same ABI, which is a related issue.
I'd personally suggest setting --env-shebang
in gemrc until RubyGems adopts it as a default. (JRuby does already default to --env-shebang
.)
I had
preview3
installed and then I installedrc1
viaruby-install
. Once I did I got these errors:Notice that it's trying to use
/Users/rschneeman/.rubies/ruby-2.6.0-preview3
. It turns out that's because even though I deleted/Users/rschneeman/.rubies/ruby-2.6.0-preview3
the gems are still installed at/Users/rschneeman/.rubies/ruby-2.6.0
. There was a hardcoded shebang line in that directory which was causing the issue.