2016-05-20 23 views
0

我試圖安裝RVM,並且我有一個更新版本的BASH。我認爲它需要一個3.2.25或更新的版本。我在網上看過幾篇關於它的文章,但他們都已經過時或不再與當前的代碼相關。這裏是我在cmd中(我有Windows 10專業版)。安裝RVM時出錯:需要BASH 3.2.25(你有4.3.42(4) - 釋放)

curl -L https://get.rvm.io | bash -s stable --autolibs=enabled --ruby --rails 
    % Total % Received % Xferd Average Speed Time Time  Time Current 
           Dload Upload Total Spent Left Speed 
100 184 100 184 0  0 143  0 0:00:01 0:00:01 --:--:-- 155 
100 22865 100 22865 0  0 9566  0 0:00:02 0:00:02 --:--:-- 45730 
Input file specified two times. 

BASH 3.2.25 required (you have 4.3.42(4)-release) 
+1

是什麼問題? –

+0

我能做些什麼來解決這個錯誤?它不會繼續安裝。 – user2951507

+1

此問題可能已在此處解決:https://github.com/rvm/rvm/issues/2346 – user2699706

回答

1

運行檢查時顯示的錯誤「輸入文件指定兩次,」從Windows排序命令中輸出。如果您運行此命令時,它會告訴你sort命令的哪個實例正在運行:之前的任何

which sort 

以確保正確的版本始終使用,改變你的PATH包括典型的bash可執行文件路徑(/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin) Windows的。或者,只需從PATH中刪除Windows路徑即可。

你在哪裏改變這取決於你如何安裝Bash(Cygwin,git-bash等),但通常是你的主目錄中的一個文件,稱爲.profile.bash_profile

+0

謝謝!這解決了我的問題! :d – user2951507