rvm – 终端启动时出错

前端之家收集整理的这篇文章主要介绍了rvm – 终端启动时出错前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
-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

但我仍然不断得到相同的错误.
im使用OS X 10.8

解决方法

看看/ etc / profile的来源.

在10.8的Mac OS中,使用sudo安装RVM时,会向/etc/profile.d/rvm.sh添加一行.即使您使用rvm implode删除RVM,那么一个内存将停留在那里,并且会导致该错误在任何终端启动时显示.

猜你在找的Ruby相关文章