You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On macOS, the default system Ruby needs sudo to install Gems, but now, when I set GEM_HOME, rbenv will install Gems for any version inside GEM_HOME, instead of keeping separate directories for each Ruby version.
How can I set a custom GEM_HOME for only the system Ruby?
The text was updated successfully, but these errors were encountered:
RubyGems installs to Gem.user_dir when --user-install is passed. I did a web search for docs and took at look at the code on GitHub, and user_dir does include the Ruby version. Check out http://guides.rubygems.org/faqs/#user-install, for example.
Note that you have --install-path and --bin-path at your disposal, too. I'd recommend looking at RubyGems source code to dig much further, since these are poorly documented and undocumented.
On macOS, the default
system
Ruby needssudo
to install Gems, but now, when I setGEM_HOME
,rbenv
will install Gems for any version insideGEM_HOME
, instead of keeping separate directories for each Ruby version.How can I set a custom
GEM_HOME
for only thesystem
Ruby?The text was updated successfully, but these errors were encountered: