Skip to content

Installing Ruby: Update ruby version to latest stable release #29670

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions ruby/introduction/installing_ruby.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ It's finally time to install Ruby using `rbenv`!
Inside the terminal, run this command:

```bash
rbenv install 3.4.2 --verbose
rbenv install 3.4.3 --verbose
```

This command will take 10-15 minutes to complete. The `--verbose` flag will show you what's going on so you can be sure it hasn't gotten stuck. While it installs, take this time to watch [funny jumping goats video](https://youtu.be/X2CYWg9-2N0) or to get a glass of water.
Expand All @@ -128,7 +128,7 @@ git -C "$(rbenv root)"/plugins/ruby-build pull
Once Ruby is installed, you need to tell rbenv which version to use by default. Inside the terminal, type:

```bash
rbenv global 3.4.2
rbenv global 3.4.3
```

Then,
Expand All @@ -140,7 +140,7 @@ ruby -v
The above command should return something similar to this:

```bash
ruby 3.4.2pxx (20xx-xx-xx revision xxxxx) [x86_64-linux]
ruby 3.4.3pxx (20xx-xx-xx revision xxxxx) [x86_64-linux]
```

where x represents the version available at the time you installed Ruby.
Expand Down Expand Up @@ -237,7 +237,7 @@ If you do not get a version number at all (anything not starting with `rbenv 1..

#### Step 2.3: Install Ruby

We can now (finally) install Ruby! Our curriculum currently uses version 3.4.2, which will allow you to complete this path's materials and content without error. We upgrade the material to accommodate newer versions as necessary. Without further ado, let's get going!
We can now (finally) install Ruby! Our curriculum currently uses version 3.4.3, which will allow you to complete this path's materials and content without error. We upgrade the material to accommodate newer versions as necessary. Without further ado, let's get going!

First, let's upgrade `ruby-build`:

Expand All @@ -248,18 +248,18 @@ brew upgrade ruby-build
Now we're ready to install our desired version of Ruby:

```bash
rbenv install 3.4.2 --verbose
rbenv install 3.4.3 --verbose
```

This command will take 10-15 minutes to complete. The `--verbose` flag will show you what's going on so you can be sure it hasn't gotten stuck. While it installs, take this time to watch [funny jumping goats video](https://www.youtube.com/watch?v=X2CYWg9-2N0) or to get a glass of water.

Once Ruby is installed, you need to tell rbenv which version to use by default. Inside the terminal, type:

```bash
rbenv global 3.4.2
rbenv global 3.4.3
```

You can double check that this worked by typing `ruby -v` and checking that the output says version 3.4.2:
You can double check that this worked by typing `ruby -v` and checking that the output says version 3.4.3:

```bash
ruby -v
Expand All @@ -268,7 +268,7 @@ ruby -v
You should get an output with a version number **similar** to this:

```bash
ruby 3.4.2pxx (20xx-xx-xx revision xxxxx) [x86_64-darwin18]
ruby 3.4.3pxx (20xx-xx-xx revision xxxxx) [x86_64-darwin18]
```

If you don't see the output above, close and reopen the terminal window and then run the command again.
Expand Down