Dne 15.12.2017 v 12:47 Jun Aruga napsal(a):
Vit,
> This appears to be related to the default location of where the gems are
> installed. Upstream Ruby installs the gems into their directory, we
> install the gems into home directory.
Thanks for checking about the default gem specification,
Why did we decide the gems to not default local but home directly?
I you build Ruby by yourself, they are installed by default into
/urs/local. The distribution installs the packages into /usr. If you
want to install additional gems using "gem install", they are installed
into those directories. To do that, you need enough privileges (and you
can see that historically, things like "sudo gem install" were always
suggested) and you are mixing RPM managed and gem managed packages (and
generally asking for problems). Alternatively you need to specify
additional parameters on command line to install the additional gems
into user directory.
This might be fine if you build Ruby by yourself or using RVM or rbenv,
but non of these defaults respects the purpose of distribution and
neither they are user friendly.
There is upstream ticket asking installation of gem to user directory to
become default and we are not the only distribution which changed the
defaults.
https://bugs.ruby-lang.org/issues/11731
Vít