2011-05-22 159 views
3

我試圖在新機器上安裝RVM。我之前做過,然後就很順利。但現在我不斷收到這些錯誤:當我試圖安裝RVM時,爲什麼會收到警告?

WARNING: 
     Could not source '/Users/anders/.rvm/scripts/base' as file does not exist. 
     RVM will likely not work as expected. 
WARNING: 
     Could not source '/Users/anders/.rvm/scripts/version' as file does not exist. 
     RVM will likely not work as expected. 
WARNING: 
     Could not source '/Users/anders/.rvm/scripts/selector' as file does not exist. 
     RVM will likely not work as expected. 
WARNING: 
     Could not source '/Users/anders/.rvm/scripts/cd' as file does not exist. 
     RVM will likely not work as expected. 
WARNING: 
     Could not source '/Users/anders.rvm/scripts/cli' as file does not exist. 
     RVM will likely not work as expected. 
WARNING: 
     Could not source '/Users/anders/.rvm/scripts/override_gem' as file does not exist. 
     RVM will likely not work as expected. 
cat: /Users/anders/.rvm/VERSION: No such file or directory 
/Users/anders/.rvm/src/rvm/scripts/rvm: line 133: __rvm_conditionally_add_bin_path:  
command not found 

我也跟着上https://rvm.beginrescueend.com/rvm/install/步驟,但它不工作。

我用:

bash < <(curl -s https://rvm.beginrescueend.com/install/rvm) 
安裝時

,我不是以root運行,也不使用sudo

我也添加到了我的.bash_profile文件中:

[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" 

我檢查和「抱怨」文件確實存在,所以我想這是一個權限的事情。任何提示如何解決這個問題將不勝感激。

+0

如果你嘗試這樣做會發生什麼?:bash <<(curl http://rvm.beginrescueend.com/releases/rvm-install-latest) – Nerian 2011-05-22 13:59:51

+0

@Nerian:它開始下載,但後來我得到這個錯誤:bash :線路1:HTML:沒有這樣的文件或目錄 擊:第2行:附近意外的標記語法錯誤'<「 」灰:第2行:' 301永久移動 Anders 2011-05-22 15:47:18

+0

我修改了它稍微但我不斷收到相同的警告:bash <<(curl -s https://rvm.beginrescueend.com/releases/rvm-install-latest) – Anders 2011-05-22 15:57:45

回答

3

運行rvm notes並檢查輸出。確保已安裝操作系統依賴關係。

+0

嗨,我現在開始工作。我按照你的說法運行了rvm筆記,並發現Snow Leopard安裝DVD中的xcode有bug。我試圖從developer.apple.com安裝xcode,刪除舊版本,但後來我得到了相同的警告。然後我做了一個乾淨的操作系統安裝(可能矯枉過正),從安裝DVD中跳過xcode從developer.apple.com(和git等)下載它,現在它工作。在安裝之前卸載舊的xcode版本可能就足夠了,但無論如何,謝謝! – Anders 2011-05-23 07:18:14

相關問題