Question

I have ruby 1.9.2 installed on my system (Ubuntu) using rvm, but one application needs rvm 1.8.7, How shall I install ruby 1.8.7 along with ruby 1.9.2 amd run on my system .

Please guide ?

Was it helpful?

Solution

The purpose of rvm is running different versions of ruby on the same system. So just install ruby 1.8.7:

rvm install 1.8.7

Then you can either set 1.8.7 as the default (rvm --default use 1.8.7) or create a .rmvrc file in the directory of your application:

cat > /replace-with-your-application-directory/.rvmrc << "EOF"
rvm ruby-1.8.7-p352
EOF
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top