Read more

Rbenv: Alias a Ruby version

Emanuel
December 19, 2019Software engineer at makandra GmbH

We use rbenv alias on every machine, so there is no need to have this card separately. Please check out https://makandracards.com/makandra/28149-installing-rbenv-on-ubuntu-18-04 if you encounter any issues.

For newer Ubuntu versions we currently need to install the patch level version 1.8.7-p375, otherwise the dev dependencies from openssl will cause the installation to fail.

Illustration online protection

Rails Long Term Support

Rails LTS provides security patches for old versions of Ruby on Rails (2.3, 3.2, 4.2 and 5.2)

  • Prevents you from data breaches and liability risks
  • Upgrade at your own pace
  • Works with modern Rubies
Read more Show archive.org snapshot

For a project that specifies the Ruby version 1.8.7 in the .ruby-version the rbenv autoswitch will not work. You have several options how you can solve this problem:

  • Install rbenv-aliases Show archive.org snapshot , which will alias your Ruby 1.8.7-p375 to 1.8.7 with rbenv alias 1.8.7 1.8.7-p375 (recommended)
  • Use rbenv shell 1.8.7-p375, but don't forget to say rbenv shell --unset after you're finished with the project
  • Change the Ruby version in the .ruby-version to 1.8.7-p375
Posted by Emanuel to makandra dev (2019-12-19 20:57)