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
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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:
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.
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