I am sure this is not a new question, and have ben answered on this website before. I have tried the solutions prescribed but unfortunately the error is still persisting. Hence, approaching the community again.
The problem is that HomeBrew gives the warning as follows:
Warning: /usr/bin occurs before /usr/local/bin This means that system-provided programs will be used instead of those provided by Homebrew. The following tools exist at both paths:
Consider amending your PATH so that /usr/local/bin occurs before /usr/bin in your PATH.
My /etc/paths looks like this:
/usr/local/bin /usr/local/sbin /usr/bin /bin /usr/sbin /sbin
My ~/.bash_profile looks like this:
My ~/.bashrc looks like this:
export PATH=/usr/local/bin:/usr/local/sbin:$PATH [[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"
My echo $PATH output looks like this:
/usr/local/rvm/gems/ruby-1.9.3-p194/bin /usr/local/rvm/gems/ruby-1.9.3-p194@global/bin /usr/local/rvm/rubies/ruby-1.9.3-p194/bin /usr/local/rvm/bin /usr/bin /bin /usr/sbin /sbin /usr/local/bin /opt/sm/bin /opt/sm/pkg/active/bin /opt/sm/pkg/active/sbin /opt/local/bin