If I run:
rvm system
ruby -v
I get:
ruby-192...
I want the system version that is Ruby 1.8.7.
Ruby 1.9.2 was installed using RVM. I still can see Ruby 1.8.7 if I run /usr/bin/ruby -v.
rvm info
system:
system:
uname: "Darwin MacML.local 11.2.0 Darwin Kernel Version 11.2.0: Tue Aug 9 20:54:00 PDT 2011; root:xnu-1699.24.8~1/RELEASE_X86_64 x86_64"
bash: "/bin/bash => GNU bash, version 3.2.48(1)-release (x86_64-apple-darwin11)"
zsh: "/bin/zsh => zsh 4.3.11 (i386-apple-darwin11.0)"
rvm:
version: "rvm 1.10.0 by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.beginrescueend.com/]"
homes:
gem: "not set"
ruby: "not set"
binaries:
ruby: "/usr/local/bin/ruby"
irb: "/usr/local/bin/irb"
gem: "/usr/local/bin/gem"
rake: "/usr/local/bin/rake"
environment:
PATH: "/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11/bin:/Users/ML/.rvm/bin"
GEM_HOME: ""
GEM_PATH: ""
MY_RUBY_HOME: ""
IRBRC: ""
RUBYOPT: ""
gemset: ""
The problem were these 2 lines below on my .profile
I commented both and the path to the system ruby went back to normal. the Tin Man tip was crucial to find what the problem was.
I had one ruby version in /usr/local/bin/ruby and another in /usr/bin/ruby
After I commented the lines mysql stopped working by I reinstalled with brew and everything seems to be working