ruby gem install as root/administrator is not available to users. How is this fixed?
What did you install and how? package name?
logged in as root.
gem install --verbose curses
gem install --verbose gruff
gem install --verbose serial
etc…
I found in other distros that if root install via gem install then the gem is made available to all users
I misunderstood what you where asking about.
I thought you where asking about what is available as a installable from the repo package: rubygems
I have actually no idea whatsoever how ruby is supposed to work.
Probably use the user who wants to have it?
root
is the admin of the system - no other normal user has access to whatever is made available only for “him”.
Which is what you probably did when you used the root account.
again: misunderstanding - I can’t help
It mentions something similar in the Arch Wiki ;
but, that’s not all it says…
Please see;
- Ruby (Arch Wiki);
- Section 2.3 Installing gems system-wide
Also note the section about Bundler;
- Section 2.4 Bundler
Also note that logging in as root
is seldom ever encouraged.
If sudo
isn’t sufficient from your User account, please drop to the Super User instead;
su -
Regards.
thank you for the info: Section 2.3 Installing gems system-wide
no worries