$ rvm get head&& rvm重新加载

时间:2012-10-23 03:31:37

标签: ruby-on-rails ruby-on-rails-3

我插入了以下“$ rvm get head&& rvm reload”并得到了下面的输出。它说目录丢失并运行rvmsudo来解决我的问题。有人可以解释我应该创建哪些目录吗?什么是“rvmsudo”?

根据输出,这是否意味着这不能正常运行?最后,它注意到......“/ usr / local / rvm /中的RVM升级完成。”

输出:

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   185  100   185    0     0    199      0 --:--:-- --:--:-- --:--:--   417
100 10009  100 10009    0     0   7016      0  0:00:01  0:00:01 --:--:-- 78811
Downloading RVM from wayneeseguin branch master
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   125  100   125    0     0    261      0 --:--:-- --:--:-- --:--:--  1179
100 1125k  100 1125k    0     0   640k      0  0:00:01  0:00:01 --:--:-- 1238k

Upgrading the RVM installation in /usr/local/rvm/
mkdir: /usr/local/share/man/man1: Permission denied
stat: /usr/local/share/man/man1: stat: No such file or directory
chown: /usr/local/share/man/man1: No such file or directory
cp: /usr/local/share/man/man1/rvm.1: No such file or directory


    Please run the installer using rvmsudo to fix file permissions

stat: /usr/local/share/man/man1/rvm.1: stat: No such file or directory
chown: /usr/local/share/man/man1/rvm.1: No such file or directory
mkdir: /usr/local/share/man/man1: Permission denied
stat: /usr/local/share/man/man1: stat: No such file or directory
chown: /usr/local/share/man/man1: No such file or directory
cp: /usr/local/share/man/man1/rvm.1.gz: No such file or directory


    Please run the installer using rvmsudo to fix file permissions

stat: /usr/local/share/man/man1/rvm.1.gz: stat: No such file or directory
chown: /usr/local/share/man/man1/rvm.1.gz: No such file or directory
    RVM PATH line found in /Users/XXXXXX/.bashrc /Users/XXXXXX/.zshenv.
    RVM sourcing line found in /Users/XXXXXX/.bash_profile /Users/XXXXXX/.zprofile.

Upgrade Notes:

  * No new notes to display.

.....

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

Upgrade of RVM in /usr/local/rvm/ is complete.

1 个答案:

答案 0 :(得分:1)

如果您输入

rvm -v

并获取

rvm 1.16.12 (stable) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/]

然后安装了rvm。如果安装不正确,您可以使用

rvm implode

这将删除它并允许您从头开始。

rvm get stable

这将为您提供最新的稳定版本。

关于rvmsudo是什么,这是一个很好的解释

http://ruby.about.com/od/rubyversionmanager/qt/Rvm-And-Sudo.htm