终端启动错误 [英] Error on terminal start
本文介绍了终端启动错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
-bash: /etc/profile.d/rvm.sh: No such file or directory
-bash: /Users/janekambani/.bash_profile: line 1: conditional binary operator expected
-bash: /Users/janekambani/.bash_profile: line 1: syntax error near `"$HOME/.rvm/scripts/rvm"'
-bash: /Users/janekambani/.bash_profile: line 1: `[[ -s "$HOME/.rvm/scripts/rvm"]] && . "$HOME/.rvm/scripts/rvm" '
我试过了:
sudo rm -rf /etc/rvmrc /etc/profile.d/rvm.sh /usr/local/rvm /usr/local/bin/rvm $HOME/.rvm $HOME/.rvmrc
但我仍然不断收到同样的错误.我使用的是 OS X 10.8
but i still kept getting the same error. im using OS X 10.8
推荐答案
查看/etc/profile 的源码.
Take a look at the source of /etc/profile.
在 Mac OS 10.8 上,使用 sudo 安装 RVM,在/etc/profile.d/rvm.sh 中添加一行.即使您使用 rvm implode
删除了 RVM,那一行代码仍会留在那里,并会导致在任何终端启动时显示该错误.
On 10.8 of Mac OS, installing RVM while using sudo, adds a line to /etc/profile.d/rvm.sh. Even if you remove RVM using rvm implode
, that one liner stays in there and will cause that error to show on start up of any terminal.
这篇关于终端启动错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文