Reputation: 10759
I have two version of ruby installed 1.9 and 1.8.7(via macports) how do I make my app run with 1.8.7?
And How can i uninstall 1.9?
TIA
Upvotes: 0
Views: 174
Reputation: 5586
Firstly: switch to rvm it's excellent for ruby management
If you don't want to then I believe you can remove the ruby package with (if installed with macports) with the following:
sudo port uninstall ruby19
To start using the new version of ruby you need to find where it is installed (it's something like /opt/local/<...>)
Then go to the Binary folder and add it to path.
export PATH=/opt/local/<...>:$PATH
Removing the old one, you might need to change some env variables as well.
Use RVM
EDIT: added sudo to port command and changed standard location
Upvotes: 5