O usuário único rvm precisa do sudo e adiciona usuários ao grupo rvm

1

Estou seguindo as instruções no site do rvm . Primeiro, tentei instalar para usuários individuais:

$ 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

As instruções no site estão erradas? Alguém na equipe do rvm pode corrigir o arquivo de instalação ou alterar as instruções?

Então, tentei a instalação de vários usuários

$ 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/]

Estou um pouco desconfiado porque as instruções não mencionaram nada sobre adicionar usuários. Onde estão as instruções para adicionar usuários ao grupo rvm?

    
por highBandWidth 04.08.2012 / 20:15

1 resposta

1

A versão do RVM empacotada pelo Ubuntu é antiga e quebrada de maneiras misteriosas, você precisa ler isso para obter detalhes sobre como corrigir: link

    
por mpapis 04.08.2012 / 20:38