I am just beginning work on an existing app which must be developed
using 1.8.6, however, my Ruby is 1.8.7. I am a pixel-pusher /
interface designer by trade so terminal commands are new to me. I have
downloaded 1.8.6 using Terminal, how do I uninstall 1.8.7?
I have been using this for reference: http://hivelogic.com/articles/ruby-rails-mongrel-mysql-osx
Many thanks
Ptah, I would recommend installing the Ruby Version Manager Gem (RVM). Thus, you can do the
following:
- install the gem
sudo /usr/bin/gem install rvm
- configure the gem for use
rvm-install
- update your .profile by adding the following to the bottom of it
if [[ -s /Users/<USER_NAME>/.rvm/scripts/rvm ]] ; then source /Users/<USER_NAME>/.rvm/scripts/rvm ; fi
-
open a new shell
-
install the Ruby implementation
rvm install 1.8.6
Note: The above installs the latest revision of Ruby 1.8.6 and the current patch level is p368 as far as I know.
- set the default Ruby implementation
a) using the system version as the default
rvm system --default
b) using Ruby 1.8.6 as the default
rvm 1.8.6 --default
- switching between Ruby implementations
a) switching to Ruby 1.8.6 version
rvm use 1.8.6
b) switching to the system installed version
rvm use system
If you require any additional information, I would recommend using the following URL:
http://rvm.beginrescueend.com
Also, you can join the Google Group:
http://groups.google.com/group/rubyversionmanager
Good luck,
-Conrad