DEV Community

Alexandre Calaça
Alexandre Calaça

Posted on

2

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

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!

Speedy emails, satisfied customers

Postmark Image

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

Top comments (4)

Collapse
 
slimgee profile image
Given Ncube

Do you have an idea on how to add this to mina deployment flow?

Collapse
 
alexandrecalaca profile image
Alexandre Calaça

I do not :(
Are you facing the same issue?

Collapse
 
slimgee profile image
Given Ncube

I did but it's an easy fix. I have mina in my deployment pipeline I just wanted to automate that as well

Thread Thread
 
alexandrecalaca profile image
Alexandre Calaça

I wish I could help you, Given.

The Most Contextual AI Development Assistant

Pieces.app image

Our centralized storage agent works on-device, unifying various developer tools to proactively capture and enrich useful materials, streamline collaboration, and solve complex problems through a contextual understanding of your unique workflow.

👥 Ideal for solo developers, teams, and cross-company projects

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay