When install rails with
sudo gem install rails
or with root user, this install in $HOME/.gem
and only works for actual user, how install for all users in the system ?
arch linuxrubyruby-on-railsrubygems
When install rails with
sudo gem install rails
or with root user, this install in $HOME/.gem
and only works for actual user, how install for all users in the system ?
Best Answer
You might need to change your
/etc/gemrc
or/root/.gemrc
. The default is set toWhich does exactly what you observed. You can use
See Arch Wiki: Ruby.
install-packages-through-apt-get-or-gem is about the decision to use a package manager or
gem
. Usingpacman
is the same as usingapt-get
in this case.EDIT:
As mentioned by Hans: Another option to use pacgem to build an Arch Linux package from a gem on the fly.