Skip to content

RVM

RVM is a software dedicated to managing multiple Ruby interpreter installations. There are several advantages of using RVM, most notably the ability to set up your own gems and update them to your chosen version.

RVM installation

Once installed RVM can be used later for all custom domains.

Information

Before installing activate the binexec option and relogin.

To install RVM execute the following commands:

$ gpg --keyserver hkp://pool.sks-keyservers.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
(...)
gpg: Total keys processed: 1
gpg:            unchanged: 1
$ curl -sSL https://get.rvm.io | bash -s stable
(...)
#   Thank you for using RVM!
#   We sincerely hope that RVM helps to make your life easier and more enjoyable!!!
#
# ~Wayne, Michal & team.

In case of problems: http://rvm.io/help and https://twitter.com/rvm_io
$ source .rvm/scripts/rvm

Installing the Ruby interpreter

After executing the command rvm list known you will see a list of available versions of the Ruby interpreter which can be found in the MRI Rubies section. For installation use the following command:

$ rvm install 2.4 --autolibs=disabled
(...)
Install of ruby-2.10 - #complete
Ruby was built without documentation, to build it run: rvm docs generate-ri
$ gem install bundler
(...)
1 gem installed

Variables

Setting a variable from the SSH with visibility for the application launched by Passenger is possible by adding variables to the ~/.bash_profile file (e.g. export TESTENV = 1).

Warning

Variables will not be used from ~/.bashrc or ~/.shrc

Rebuild

  • Ruby:

rvm reinstall ruby-X.X.X --autolibs=disabled
where X.X.X is the version of Ruby in use in RVM.

  • Gems:
gem pristine --all

External references