I am currently using Ruby version 3.2.2 on Ubuntu 22.04, which I installed using asdf. I would like to upgrade to version 3.3.0.
When I run asdf install ruby 3.3.0
, I keep getting the error message ruby-build: definition not found: 3.3.0.
Can anyone guide me on how to upgrade my Ruby version to 3.3.0 using asdf?
I have tried running asdf install ruby 3.3.0
where I expected it to upgrade my version to Ruby 3.3.0.
2
Answers
Updating asdf plugin using the following command
asdf plugin update ruby
has worked for me. You should be able to install 3.3.0 afterwards.Here’s how I do it using devops to make my version predictable:
This opens up my current defaults, which I edit to change the
ruby
line:.tool-versions
and installs them:You can verify you’re running the new version like this:
Finally, this isn’t required, but I always update the essentials when I install a new interpreter: