Install RVM and Ruby

Updated . Posted . Visible to the public.

<< Prev - Install Rails Dependencies

sudo apt-get install libgdbm-dev libncurses5-dev automake libtool bison libffi-dev

sudo apt install gnupg2

// If this fails, try: command curl -sSL https://rvm.io/mpapis.asc | gpg2 --import -
gpg2 --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3

curl -sSL https://get.rvm.io | bash -s stable

source ~/.rvm/scripts/rvm

// or 2.3.1, etc. for older version
rvm install 2.4.2
rvm use 2.4.2 --default
ruby -v

If you do not want to install documentation with gems (otherwise skip):

gem: --no-rdoc --no-ri 

Add the above text to your ~/.gemrc or /etc/gemrc file.

>> Next - Install Rails

hashharvest
Last edit
hashharvest
Posted by hashharvest to Rails CheatSheets (2017-11-17 07:40)