2

ジェムセットを作成しようとしています。まず、やった

$ 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.

次に、 https: //stackoverflow.com/a/5716654/429850での回答によると、私は

$ 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

マルチユーザーrvmインストールでgemsetをどのように作成しますか?

更新:コンピューターを再起動し、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'.
4

1 に答える 1

3

マルチユーザー/システム全体のインストールの場合、アクセスが必要な各ユーザーをグループに追加する必要がありrvmますrvm

于 2012-11-24T06:51:15.553 に答える