2013-11-04 91 views
0

我在嘗試安裝RVM後收到錯誤消息,我需要幫助瞭解爲什麼我收到此消息以及如何解決此問題。當我打開一個終端窗口,這是我收到的消息:終端 - RVM錯誤

-bash: /etc/profile.d/rvm.sh: No such file or directory 

我有在主目錄中一個bash文件夾,但我沒有看到/ etc/profile文件。我已經卸載了RVM,但是這個錯誤信息仍然顯示,我目前正在運行Ruby 1.8.7。

運行rvm implode後,我收到以下消息:

Note you may need to manually remove /etc/rvmrc and ~/.rvmrc if they exist still. 
Please check all .bashrc .bash_profile .profile and .zshrc for RVM source lines and delete   
or comment out if this was a Per-User installation. 
Also make sure to remove `rvm` group if this was a system installation. 
Finally it might help to relogin/restart if you want to have fresh environment 

如果任何人有任何想法或見解我很樂意聽聽你的想法,我處於停頓狀態是一種使任何建議有助於。謝謝。

+0

您應該顯示您用來安裝RVM的命令。我猜你沒有閱讀*完整* [RVM安裝說明](http://RVM.io/rvm/install),並嘗試以某種方式使用'sudo'。 '/ etc/profile'不在你的主目錄中,它是所有用戶的系統擁有文件。 –

+0

@TinMan是的,我確實在某些時候使用了sudo,但是我閱讀了安裝說明,但是現在我想知道是否意外地安裝了多用戶而不是單用戶。我剛剛搜索了/ etc/profile和幾個彈出的函數文件,這是我發現的:install_template「riak/riak.sh」\ 到「/etc/profile.d/${package_name}.sh」\ 模式0755 – user2650627

+0

你永遠不需要使用'sudo'與RVM進行單一用戶安裝,它只適用於多用戶安裝。安裝說明很明確。 RVM作者非常敏感,可以幫助您解決問題。打開新的終端窗口時,問題是否仍然存在? –

回答

0

嘗試從終端取出,RVM

$ rm /etc/profile.d/rvm.sh 

$ rm ~/.rvmrc 

,然後檢查你的bash的個人資料

$ open bash_profile 

$ open .bashrc 

刪除具有RVM任何線路。