Installing RVM
- Download and run RVM install script - sudo bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer )
- Add all users who need to use Ruby to the RVM group
- Logout and login
- Update RVM so that the rvm command can be run - rvmsudo rvm get head
- Reload the terminal (shell) - source ~/.profile
- Test to see if RVM was installed and configured properly - type rvm | head -1
Installing Ruby 1.9.3
- Install Ruby 1.9.3 – rvm install 1.9.3
- Set the default version of Ruby to use to 1.9.3 – rvm use 1.9.3
- Test to see if the Ruby interpreter runs with the correct version – ruby -v
Installing OpenSSL And Readline Packages
- Install libssl-dev Ubuntu package
- Install OpenSSL RVM package - rvm pkg install openssl
- Reinstall Ruby with OpenSSL support - rvm reinstall 1.9.3 --with-openssl-dir=$rvm_path/usr
- Install libreadline6-dev Ubuntu package
- Install Readline RVM package - rvm pkg install readline
- Reinstall Ruby with Readline support - rvm reinstall 1.9.3 --with-readline-dir=$rvm_path/usr
Notes
Before starting on the installation of RVM you may need to change a setting in Gnome Terminal if it is used. In Gnome Terminal goto Edit → Profile Preferences. Within the shown dialog select Title and Command tab. Ensure that Run command as login shell is checked.
This was super helpful for me. Thanks!
ReplyDelete