Skip to content

Instantly share code, notes, and snippets.

@esteedqueen
Last active March 9, 2026 21:27
Show Gist options
  • Select an option

  • Save esteedqueen/b605cdf78b0060299322033b6a60afc3 to your computer and use it in GitHub Desktop.

Select an option

Save esteedqueen/b605cdf78b0060299322033b6a60afc3 to your computer and use it in GitHub Desktop.
How to fix rbenv: version `x.x.x` is not installed

So, you just cloned an existing project's repo and you run bundle install but you got the error: rbenv: version x.x.x is not installed....

What the issue means? The project uses a specific ruby version that you do not have on your system.

Here's how to fix it:

  • Install the Ruby build for the specified version using:
rbenv install x.x.x
  • If the above command doesn't run successfully and you get ruby-build: definition not found: x.x.x, upgrade brew and ruby-build using:
brew update && brew upgrade ruby-build

And run the rbenv install x.x.x command again.

  • Now, you have a new Ruby version, so you have to reinstall the gems you need (e.g. bundler, rails, etc). To be able to run bundle install again, run gem install bundler, gem install rails, etc to install the gems (bundler and rails) version for the newly installed ruby build
@KvNGCzA

KvNGCzA commented May 11, 2022

Copy link
Copy Markdown

Thank you

@WoLkErSs

WoLkErSs commented May 20, 2022

Copy link
Copy Markdown

Thank you
rbenv install x.x.x works for AWS codebuild

@zachnicoll

Copy link
Copy Markdown

Legendary, thanks!

@PlywoodPallet

Copy link
Copy Markdown

Worked for me. Thank you!

@adenhaus

adenhaus commented Aug 1, 2022

Copy link
Copy Markdown

You may also need to set rbenv local x.x.x to set it in your directory.

@vyavahare-kishor

Copy link
Copy Markdown

Thanks, this worked for me brew update && brew upgrade ruby-build

@Maxafangsco

Copy link
Copy Markdown

Thanks this works for macOS Big Sur version 11.6.5

@DanSam5K

Copy link
Copy Markdown

Super helpful. ๐Ÿ‘ โœŒ๏ธ

@ReneMercadel

ReneMercadel commented Sep 19, 2022

Copy link
Copy Markdown

Much appreciated c:
Deleting my Gemfile.lock and running bundle install got it working.

 M1 macbook, macOS 12.4

@PaulineTW

Copy link
Copy Markdown

git -C /home/user-name/.rbenv/plugins/ruby-build pull

Awesome!!!

@Griminy

Griminy commented Nov 3, 2022

Copy link
Copy Markdown

Thanx. It helped)

@corbolt

corbolt commented Nov 5, 2022

Copy link
Copy Markdown

Thanks!

@adenilsonbc

Copy link
Copy Markdown

Wow, thanks!

@hectorsum

Copy link
Copy Markdown

Thanks!

@AkylbekSul

Copy link
Copy Markdown

Thank you!!!

@yayahc

yayahc commented Mar 8, 2023

Copy link
Copy Markdown

Nice (rbenv install 3.2.0) work for me.

@a7madgamal

Copy link
Copy Markdown

All hail the queen ๐Ÿ‘‘

@Arshadshriffle

Copy link
Copy Markdown

Thank you for help , it works

@olegderecha

Copy link
Copy Markdown

Great!

@bobaisthebestwaytodefeatstress

Copy link
Copy Markdown

I have a error that says "unable to open configuration settings file" can you help with me?

@bobaisthebestwaytodefeatstress

Copy link
Copy Markdown

It keeps saying rbenv: version `2.4' is not installed

@alperbayram

Copy link
Copy Markdown

thanks๐Ÿ‘๐Ÿ‘

@softmastx

Copy link
Copy Markdown

thanks

@shaarang-contlo

Copy link
Copy Markdown

Cannot thank you enough!

@sony-mathew

Copy link
Copy Markdown

This worked. ๐ŸŽ‰

@DavenMauff

Copy link
Copy Markdown

Thank you! :)

@nachoalthabe

Copy link
Copy Markdown

Thanks!

@davybolivar

Copy link
Copy Markdown

Thank you!

@aMujeeb

aMujeeb commented Oct 29, 2024

Copy link
Copy Markdown

Thank You...!!!

@wenMoonx

wenMoonx commented Jan 9, 2025

Copy link
Copy Markdown

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment