I found out that I have two versions of ruby installed on OSX 10.6.2 how can I uninstall the older version and make sure that everything is fine, the path point to the other one?
bash-3.2$ /usr/local/bin/ruby -v
ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin9.7.0]
bash-3.2$ /usr/bin/ruby -v
ruby 1.8.7 (2008-08-11 patchlevel 72) [universal-darwin10.0]
bash-3.2$ $PATH
bash: /usr/local/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/libexec: No such file or directory
bash-3.2$ whereis ruby
/usr/bin/ruby
The version of Ruby in
/usr/binis the system-installed version, and should be left in place.The version you have in
/usr/local/bincan probably be safely removed. Was it installed using a package manager (ie, MacPorts, Homebrew?). If so, remove it using your package manager.If you compiled and installed it manually, you can try removing the binaries from
/usr/local/bin, but you may still have gems and other files lying around (most likely in/usr/local/lib/ruby.)Alternatively, you can leave them in place and manage your Ruby environment through RVM: http://rvm.beginrescueend.com/