If you use RVM, make sure that in your ~ / .bash_profile file the path for rvm comes before other paths.
For example, put this in your ~ / .bash_profile file before any PATH declarations:
export PATH=:~/.rvm/bin/:~/.rvm/gems/gems/
Then the rest of your export declarations, which may look like this (this is just an example, you do not need to insert it, I just turn it on so you can see how the file looks, but you definitely need it above the line):
export PATH=:~/bin/:/usr/local/Cellar/mysql/bin:/usr/local/Cellar:/usr/local/sphinx:/usr/sbin:$PATH
Finally, if, like me, you dropped RVM and went with rbenv, then replace the first export PATH
line with this:
export PATH="$HOME/.rbenv/bin:$PATH"
These changes should make the system watch your RVM files before they are built into /System/Library/Frameworks/Ruby.framework
Good luck.
source share