ubuntu 18.04 install RVM & Ruby
Pre-requisites
You need software-properties-common
installed in order to add PPA
repositories.
If not installed, open a terminal (Ctrl+Alt+T
) and run:
sudo apt-get install software-properties-common
1. Add the PPA and install the package
Open a terminal (Ctrl+Alt+T
) and run:
sudo apt-add-repository -y ppa:rael-gc/rvm
sudo apt-get update
sudo apt-get install rvm
2. Change your terminal window
Now, in order to always load rvm, change the Gnome Terminal to always perform a login.
At terminal window, click Edit
> Profile Preferences
, click on Title and Command
tab and check Run command as login shell
.
3. Reboot
A lot of changes were made (scripts that needs to be reloaded, you're now member of rvm
group) and in order to properly get all them working, you need to reboot (in most cases a logout/login is enough, but in some Ubuntu derivatives or some terminal emulators, a shell login is not performed, so we advice to reboot).
4. Install a ruby
Now you're ready to install rubies. Open a terminal (Ctrl+Alt+T
) and run:
rvm install ruby