How To Install Ruby 3.3 with chruby and uninstall Ruby 3.2 from chruby
- Categories:
- tutorial
chruby is a Ruby versioning manager and it’s my favorite Ruby versioning manager. I’ve use it in production server in since 2017. In this post I will explain how to install new Ruby version 3.3 with chruby without YJIT and remove old version Ruby 3.2. If you are looking for the detail of Ruby installation with YJIT, see How to Install Ruby 3.3 with YJIT Enabled.
How to Install MRI Ruby with chruby on Ubuntu
CRuby or MRI (Matz’s Ruby Implementation) is original Ruby implementation. To install MRI Ruby with chruby on Ubuntu, you need install all Ruby’s dependencies first.
MRI Ruby Requirements
-
MRI Ruby requires OpenSSL >= 1.0.1.
-
Install the following linux command to install Ruby’s dependencies for Ubuntu.
sudo apt-get install -y build-essential bison zlib1g-dev libyaml-dev libssl-dev libgdbm-dev libreadline-dev libffi-dev autoconf
How to Install MRI Ruby 3.2 without YJIT for chruby
How to Install MRI Ruby 3.3 with YJIT Enabled for chruby
Below is only command for Ruby installation with YJIT enabled, for the requirements see How to Install Ruby 3.3 with YJIT Enabled.
How to Uninstall MRI Ruby 3.2 from chruby
If Ruby installation with chruby use /opt/rubies
as target directory, run the following commands to uninstall Ruby from chruby.
Sponsored Links
- Register to Digital Ocean cloud with this link and get $200 credit
- Looking for cheap CDN? Bunny is the answer
- Alternative Cloud besides AWS and Digital Ocean