2011-05-17 82 views
4

完成後RVM的重裝產生以下錯誤:紅寶石:RVM安裝錯誤「無法源......」

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

我重新安裝後,我試圖讓RVM與TextMate的和RVM工作搏鬥行爲變得很奇怪(報告沒有gemsets它會列出)所以我跑:

rvm implode 

...然後手動刪除可執行文件。然後我跑了通過嚴格遵循single user instructions from the home site.

我發現錯誤後重新安裝,我調查的路徑,發現~/.rvm/scripts/~/.rvm/src/rvm/scripts/許多文件,顯然不應該是可執行文件並沒有執行權限。

RVM根本無法運行,所以我在兩個目錄中的所有文件上設置了可執行位,並且似乎有固定的東西。 (至少到目前爲止)。

使用谷歌搜索,似乎其他人已經遇到了這個問題,但似乎沒有解釋或解決方案。我想知道這是否是已知問題,以及是否應該再次重新安裝。

我在MacOS X 10.6.7

+0

今天我在Gentoo系統這個問題。我認爲它是因爲RVM足夠讓你通過Git安裝;我敢打賭,在那裏有一個不好的承諾。也許它使用標籤;我不知道。安裝過程很荒謬。 – alternative 2011-05-17 23:42:53

+0

在我的任何安裝中,我都沒有看到這個,但我沒有必要做一個乾淨的安裝一​​段時間,只有更新,這可能會掩蓋問題。我建議從作者處反彈。您可以使用'rvm -v'找到他的聯繫信息。 – 2011-05-18 00:30:01

+1

「安裝過程很荒謬。」怎麼會這樣?我運行bash命令並安裝。 – 2011-05-18 00:31:45

回答

0

運行RVM 1.6.9他們警告,沒有錯誤。我在我的Ubuntu的Linux機器上有類似的(但不是在另一個版本上,具有相同的RVM版本)。所以,這與OSX並不緊密相關。

無論如何,您的RVM安裝應該工作。

+3

在我的書中,警告只是尚未發生的錯誤。但後來,我學會了在老派C編程,所以我很偏執。 ;-)我重新安裝了rvm,現在看起來很好。 – TechZen 2011-06-03 18:06:43

+0

FWIW,我偶然發現了這個錯誤,並且實例沒有工作。版本文件在安裝穩定版本時安裝,當直接安裝不穩定版本時,該文件未創建。 – Smar 2017-07-26 12:21:16

1

是的。如果你已經安裝了系統,它肯定會尋找系統配置......和一些硬編碼的用戶腳本。這很奇怪。

快速修復: LN -nfs在/ usr /本地/ RVM /Users/developer/.rvm

0

它看起來像所有你需要的是創建一個丟失的文件。

在你的終端類型:

touch /Users/developer/.rvm/scripts/version

touch /Users/developer/.rvm/scripts/base