4

RVM 経由で ruby​​ をインストールしようとしていますが、次のエラーが表示されます。何が起こっているのかについてログが明確ではありません。Ruby を root としてインストールするべきではないことを思い出すようですが、私が取得している許可エラーについて少し疑っています。

**Installing Ruby from source to: /Users/mark/.rvm/rubies/ruby-1.9.2-p290, this may take a while depending on your cpu(s)...
ruby-1.9.2-p290 - #fetching 
ruby-1.9.2-p290 - #downloading ruby-1.9.2-p290, this may take a while depending on your connection...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0Warning: Failed to create the file ruby-1.9.2-p290.tar.bz2: Permission denied
  0 8604k    0 16150    0     0  14980      0  0:09:48  0:00:01  0:09:47 26562
curl: (23) Failed writing body (0 != 16150)
ERROR: There was an error, please check /Users/mark/.rvm/log/ruby-1.9.2-p290/*.log. Next we'll try to fetch via http.
Trying http:// URL instead.
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0Warning: Failed to create the file ruby-1.9.2-p290.tar.bz2: Permission denied
  0 8604k    0 16150    0     0  24640      0  0:05:57 --:--:--  0:05:57 28333
curl: (23) Failed writing body (0 != 16150)
ERROR: There has been an error while trying to fetch the source.  
Halting the installation.
ERROR: There has been an error fetching the ruby interpreter. Halting the installation.**
4

5 に答える 5

17

同じエラーメッセージが表示されましたが、ログインしているユーザーのsudo chown -R user:user /usr/local/rvm場所を確認して解決しuserました。その後、rvm install 1.9.2を実行すると、正常に完了しました。

于 2011-10-10T17:19:24.327 に答える
2

ユーザーが rvm グループに追加されていることを確認してください。また、必ずログアウトしてログインしてください。グループ メンバーシップはログイン時に処理されるため、/usr/local/rvm に書き込むには、ログアウトしてからログインする必要があります。 rvm グループ。

于 2014-01-12T20:06:46.193 に答える
1

エラーは次のようです

Failed to create the file ruby-1.9.2-p290.tar.bz2: Permission denied

一度 sudo で何かをしようとしましたか? ユーザーが書き込み可能であることを確認する必要が/Users/mark/.rvm/rubies/あります。

于 2011-10-03T18:18:46.283 に答える