单用户rvm需要sudo,并将用户添加到rvm组

单用户rvm需要sudo,并将用户添加到rvm组

我正在按照rvm 站点。首先,我尝试为单个用户安装:

$ curl -L https://get.rvm.io | bash -s stable

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   185  100   185    0     0     35      0  0:00:05  0:00:05 --:--:--   280
100  9439  100  9439    0     0   1602      0  0:00:05  0:00:05 --:--:-- 30642
mkdir: cannot create directory `/usr/share/ruby-rvm': Permission denied

网站上的说明有误吗?rvm 团队的某个人可以更正他们的安装文件或更改说明吗?

然后,我尝试了多用户安装

$ curl -L https://get.rvm.io | sudo bash -s stable
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   185  100   185    0     0     36      0  0:00:05  0:00:05 --:--:--   298
100  9439  100  9439    0     0    864      0  0:00:10  0:00:10 --:--:-- 23192
Downloading RVM from wayneeseguin branch stable
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   125  100   125    0     0    199      0 --:--:-- --:--:-- --:--:--   441
100 1046k  100 1046k    0     0   198k      0  0:00:05  0:00:05 --:--:--  262k

Installing RVM to /usr/share/ruby-rvm/
    RVM system user group 'rvm' exists, proceeding with installation.

# RVM:  Shell scripts enabling management of multiple ruby environments.
# RTFM: https://rvm.io/
# HELP: http://webchat.freenode.net/?channels=rvm (#rvm on irc.freenode.net)
# Cheatsheet: http://cheat.errtheblog.com/s/rvm/
# Screencast: http://screencasts.org/episodes/how-to-use-rvm

# In case of any issues read output of 'rvm requirements' and/or 'rvm notes'

Installation of RVM in /usr/share/ruby-rvm/ is almost complete:

  * First you need to add all users that will be using rvm to 'rvm' group,
    and logout - login again, anyone using rvm will be operating with `umask g+w`.

  * To start using RVM you need to run `source /etc/profile.d/rvm.sh`
    in all your open shell windows, in rare cases you need to reopen all shell windows.

# big,
#
#   Thank you for using RVM!
#   I sincerely hope that RVM helps to make your life easier and more enjoyable!!!
#
# ~Wayne


rvm 1.14.11 (stable) by Wayne E. Seguin <[email protected]>, Michal Papis <[email protected]> [https://rvm.io/]

我有点怀疑,因为说明中没有提到任何有关添加用户的信息。将用户添加到 rvm 组的说明在哪里?

答案1

Ubuntu 打包的 RVM 版本比较旧,并且存在一些神秘的问题,您需要阅读此内容以了解如何修复:https://stackoverflow.com/a/9056395/497756

相关内容