Error: rbenv install 3.3.4 - ruby-build: definition not found: 3.3.4

Alexandre Calaça - Sep 13 - - Dev Community

Situation

When trying installing Ruby 3.3.4 through rbenv on PopOs or any Ubuntu-based linux distribution

rbenv install 3.3.4
Enter fullscreen mode Exit fullscreen mode

We get the following message:

ruby-build: definition not found: 3.3.4
Enter fullscreen mode Exit fullscreen mode

Issue

Based on the error message, the issue occurs because Ruby 3.3.4 is not yet available in the version list managed by ruby-build.


Solution

Update ruby-build

git -C $(rbenv root)/plugins/ruby-build pull
Enter fullscreen mode Exit fullscreen mode

Output

Image Update ruby-build


Check for the specific Ruby Version

rbenv install --list-all | grep 3.3.4
Enter fullscreen mode Exit fullscreen mode

Output

Image Check for the specific Ruby Version


Install the specific version

rbenv install 3.3.4
Enter fullscreen mode Exit fullscreen mode

Output

Image Install the specific version


Confirm new version

ruby -v
rbenv version
Enter fullscreen mode Exit fullscreen mode

Output

Image Confirm new version


Rehash

rbenv rehash
Enter fullscreen mode Exit fullscreen mode

Done

Image Done


Let's network


Final thoughts

Thank you for reading this article.

If you have any questions, thoughts, suggestions, or corrections, please share them with us.

We appreciate your feedback and look forward to hearing from you.

Feel free to suggest topics for future blog articles. Until next time!

. . . . . . . . . . . . . . .
Terabox Video Player