2012-10-23 65 views
0

我插入了下面的“$ 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

如果输入

rvm -v 

,并得到

rvm 1.16.12 (stable) by Wayne E. Seguin <[email protected]>, Michal Papis <[email protected]> [https://rvm.io/] 

然后RVM安装。如果没有正确安装,您可以使用

rvm implode 

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

rvm get stable 

这是会给你最新的稳定版本。

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

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

+0

我看到,我有'RVM 16年1月16日(主)'。你建议我安装'1.16.12'吗?版本之间有区别吗?谢谢! – LearningHowToCode

+0

我会建议总是使用最稳定版本的任何东西,无论是Ruby,Rails,RVM等。下面是两者之间差异的更好解释。 http://www.engineyard.com/blog/2012/rvm-stable-and-more/ – FluxEngine