Не могу создать gemset при общесистемной установке rvm

Я пытаюсь создать драгоценный камень. Во-первых, я сделал

$ rvm gemset create rails-1.3.7
mkdir: /usr/local/rvm/gems/ruby-1.9.2-p320@rails-1.3.7: Permission denied
Gemset 'rails-1.3.7' does not exist, 'rvm gemset create rails-1.3.7' first, or append '--create'.
Can not create environment file for 'rails-1.3.7', Could not use ruby. 
$ sudo rvm gemset create rails-1.3.7
Password:
Can not create gemset before using a ruby.  Try 'rvm use <some ruby>'.
$ rvm use 1.9.3
Using /usr/local/rvm/gems/ruby-1.9.3-p194
$ sudo rvm gemset create rails-1.3.7
Can not create gemset before using a ruby.  Try 'rvm use <some ruby>'.
$ sudo rvm use 1.9.3

RVM is not a function, selecting rubies with 'rvm use ...' will not work.
You need to change your terminal settings to allow shell login.
Please visit https://rvm.io/workflow/screen/ for example.

Затем, в соответствии с ответом на /questions/28230520/sozdat-nabor-gemov-rvm-v-srede-obschego-hosta/28230542#28230542, я сделал

$ export rvm_gems_path="$HOME/.rvm/gems" 
$ rvm gemset create rails-3.1.7
/usr/local/rvm/scripts/functions/environment: line 94: /usr/local/rvm/environments/ruby-1.9.3-p194@rails-3.1.7: Permission denied
/usr/local/rvm/scripts/functions/environment: line 105: /usr/local/rvm/environments/ruby-1.9.3-p194@rails-3.1.7: Permission denied
/usr/local/rvm/scripts/functions/environment: line 105: /usr/local/rvm/environments/ruby-1.9.3-p194@rails-3.1.7: Permission denied
/usr/local/rvm/scripts/functions/environment: line 105: /usr/local/rvm/environments/ruby-1.9.3-p194@rails-3.1.7: Permission denied
/usr/local/rvm/scripts/functions/environment: line 105: /usr/local/rvm/environments/ruby-1.9.3-p194@rails-3.1.7: Permission denied
/usr/local/rvm/scripts/functions/environment: line 105: /usr/local/rvm/environments/ruby-1.9.3-p194@rails-3.1.7: Permission denied
/usr/local/rvm/scripts/functions/environment: line 105: /usr/local/rvm/environments/ruby-1.9.3-p194@rails-3.1.7: Permission denied
/usr/local/rvm/scripts/functions/environment: line 105: /usr/local/rvm/environments/ruby-1.9.3-p194@rails-3.1.7: Permission denied
/usr/local/rvm/scripts/functions/environment: line 105: /usr/local/rvm/environments/ruby-1.9.3-p194@rails-3.1.7: Permission denied
/usr/local/rvm/scripts/functions/environment: line 105: /usr/local/rvm/environments/ruby-1.9.3-p194@rails-3.1.7: Permission denied
/usr/local/rvm/scripts/functions/environment: line 107: /usr/local/rvm/environments/ruby-1.9.3-p194@rails-3.1.7: Permission denied
/usr/local/rvm/scripts/functions/environment: line 107: /usr/local/rvm/environments/ruby-1.9.3-p194@rails-3.1.7: Permission denied
mkdir: /usr/local/rvm/wrappers/ruby-1.9.3-p194@rails-3.1.7: Permission denied

Как создать gemsets в многопользовательской установке rvm?

Обновление: после перезагрузки компьютера и добавления себя в группу rvm я все еще не могу это сделать:

$ rvm use 1.9.2
Gemset '' does not exist, 'rvm gemset create ' first, or append '--create'.
$ rvm gemset create rails-3.1.7
'rails-3.1.7' gemset created (/Users/yasir/.rvm/gems/ruby-1.9.3-p194@rails-3.1.7).
$ rvm use 1.9.2
Gemset '' does not exist, 'rvm gemset create ' first, or append '--create'.
$ rvm rails-3.1.7
Unknown ruby interpreter version: '3.1.7'.
$ rvm 1.9.2
Gemset '' does not exist, 'rvm gemset create ' first, or append '--create'.
$ rvm gemset create 1.9.2
'1.9.2' gemset created (/Users/yasir/.rvm/gems/ruby-1.9.3-p194@1.9.2).
$ rvm 1.9.2
Gemset '' does not exist, 'rvm gemset create ' first, or append '--create'.
$ rvm use 1.9.2
Gemset '' does not exist, 'rvm gemset create ' first, or append '--create'.

1 ответ

Для многопользовательской / общесистемной установки необходимо добавить каждого пользователя, которому требуется доступ к rvm к rvm группа.

Другие вопросы по тегам