我試圖在新機器上安裝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"
我檢查和「抱怨」文件確實存在,所以我想這是一個權限的事情。任何提示如何解決這個問題將不勝感激。
如果你嘗試這樣做會發生什麼?:bash <<(curl http://rvm.beginrescueend.com/releases/rvm-install-latest) – Nerian 2011-05-22 13:59:51
@Nerian:它開始下載,但後來我得到這個錯誤:bash :線路1:HTML:沒有這樣的文件或目錄 擊:第2行:附近意外的標記語法錯誤'<「 」灰:第2行:'
我修改了它稍微但我不斷收到相同的警告:bash <<(curl -s https://rvm.beginrescueend.com/releases/rvm-install-latest) – Anders 2011-05-22 15:57:45