2013-05-07 199 views
6

當我試圖重新安裝最新版本的RVM時,RVM給了我一個關於缺少或不正確的「$ PATH」變量的錯誤通知。有誰知道 (一)這個變量應該設置爲什麼和 (二)如何改變它?

我已經搜索了幾十個線程,但沒有一個看起來完全引用了這個問題。任何幫助將不勝感激。

感謝, 科迪

Codys-MacBook-Pro:demo_app Cody$ rvm get head && rvm reload 
######################################################################## 100.0% 
Downloading RVM from wayneeseguin branch master 
Upgrading the RVM installation in /Users/Cody/.rvm/ 
RVM PATH line found in /Users/Cody/.bashrc /Users/Cody/.zshrc. 
RVM sourcing line found in /Users/Cody/.bash_profile /Users/Cody/.zprofile. 

Upgrade Notes: 

/Users/Cody/.bash_profile:3:export PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/local/git/bin:/Users/Cody/.rvm/bin 

* WARNING: Above files contains `PATH=` with no `$PATH` inside, this can break RVM, 
for details check https://github.com/wayneeseguin/rvm/issues/1351#issuecomment-  10939525 
to avoid this warning append #PATH. 

Upgrade of RVM in /Users/Cody/.rvm/ is complete. 

回答

18

這不是一個錯誤,解決方法是$ PATH預先考慮到您的出口PATH =行,所以你應該有:

export PATH=$PATH:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/local/git/bin:/Users/Cody/.rvm/bin 
+0

這樣做。非常感謝! – hawkharris 2013-05-07 20:21:01