[英]`-bash: rbenv: command not found` comes up every time I open a terminal window. How do I fix this?
我嘗試使用rbenv安裝rails,但未成功。 然后,我卸載了rbenv並使用rvm安裝了rails。 現在,每次我打開終端窗口時,都會得到以下提示
Last login: Wed Jul 17 21:59:43 on ttys001
-bash: rbenv: command not found
-bash: rbenv: command not found
name-Mac-mini:~ name$
當我使用自制軟件卸載時,我得到
$ brew uninstall rbenv
Error: No such keg: /usr/local/Cellar/rbenv
我的Mac mini運行的是Mountain Lion 10.8.4。 關於如何解決此問題的任何想法?
我遇到了完全相同的問題,這是我的解決方法。 就像zchrykng所說的,這是我.bash_profile
的一行。
運行$ sudo pico .bash_profile
打開文件進行編輯。 (您必須輸入密碼)
我必須刪除在文檔底部重復兩次的eval "$(rbenv init -)"
。 刪除這些行后,保存,您將不再看到該錯誤。
無法看到您的.bashrc
或.bash_profile
文件,我想您可能在其中之一中有一行應該從rbenv加載內容。
我將檢查那里是否有可能正在加載的東西。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.