I had ruby 1.8.7 and rails 2.3.5 installed on my machine.I had install RVM with ruby 1.9.3 and rails 3.2.0.
So i want to add existing ruby 1.8.7 to RVM.How can i do?
Ruby Version Manager (RVM) is a utility that allows you to add your own personal version of Ruby to a user. It allows you to add, remove, or have multiple versions of Ruby and its libraries live in your user directory.
While the versatility of RVM can be resourceful, when it comes to Ruby version management, it can be overkill. Using rbenv allows you to keep things simple and let other tools handle other aspects of the process. rbenv's primary focus on Ruby versioning leads to a more dev-friendly setup and configuration.
In rbenv you need to add this to your profile to load the rbenv command-line function. Once you've restarted your shell you now have access to RVM/rbenv. It is important to note that RVM and rbenv cannot be installed at the same time because of the way RVM handles the 'gem' command.
To install ruby 1.8.7 through RVM
rvm install ruby-1.8.7
To use existing system ruby
rvm use system
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With