Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error on terminal start

Tags:

rvm

ruby-1.9.3

-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" '

I tried this:

sudo rm -rf /etc/rvmrc /etc/profile.d/rvm.sh /usr/local/rvm /usr/local/bin/rvm $HOME/.rvm $HOME/.rvmrc

but i still kept getting the same error. im using OS X 10.8

like image 439
user1288305 Avatar asked Mar 23 '12 13:03

user1288305


1 Answers

Take a look at the source of /etc/profile.

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.

like image 193
Homan Avatar answered Sep 19 '22 04:09

Homan