# Rbenv setup in Jekyll Docs does not match my results

**URL:** <https://talk.jekyllrb.com/t/rbenv-setup-in-jekyll-docs-does-not-match-my-results/6103>\
**Category:** Help\
**Created:** [May 28, 2021, 10:35pm UTC](https://talk.jekyllrb.com/t/rbenv-setup-in-jekyll-docs-does-not-match-my-results/6103 "2021-05-28T22:35:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![BillRaymond](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/billraymond/32/5963_2.png) [@BillRaymond](https://talk.jekyllrb.com/u/BillRaymond)\
**Post date:** [May 28, 2021, 10:35pm UTC](https://talk.jekyllrb.com/t/rbenv-setup-in-jekyll-docs-does-not-match-my-results/6103/1 "2021-05-28T22:35:50Z")

</div>

When I set out to learn Jekyll, one of the more frustrating things was setting up a dev environment to work with Jekyll locally. I’m not even a Ruby beginner, so the terminology means very little to me.

I took it upon myself to document all the steps it takes to set up a Jekyll development environment and so far things are going well. However, I am now at the point where I share the steps to configure rbenv and there are some problems.

Here’s the TLDR video where I point out the issues at 3:44 (this is an unlisted video):

[![](https://canada1.discourse-cdn.com/flex030/uploads/jekyllrb/original/2X/d/d340e2662e3f3e854b16cea198babd6bb8135874.jpeg "issue with rbenv") ](https://www.youtube.com/watch?v=fR8PI00Olac)

According to the official Jekyll Docs, I follow these steps:

```auto
rbenv install 3.0.0
rbenv global 3.0.0
ruby -v

```

And I should get this result:

```auto
ruby 3.0.0p0 (2020-12-25 revision 95aff21468)

```

Granted, in my video, I install 3.0.1, but the same problem exists. That problem is the global rbenv environment never changes from the macOS default install of Ruby, which in my case is 2.6.3.

I can use the steps provided by `rbenv init` To get 3.0.1 installed, but it only remains the current version of Ruby in that one terminal window.

How can you use rbenv to set a default Ruby version so it can be used universally (until or unless you want to change it again)?

Thanks!

---

<div class="post-metadata">

**Author:** ![chuckhoupt](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/chuckhoupt/32/523_2.png) [@chuckhoupt](https://talk.jekyllrb.com/u/chuckhoupt)\
**Post date:** [May 29, 2021, 4:17pm UTC](https://talk.jekyllrb.com/t/rbenv-setup-in-jekyll-docs-does-not-match-my-results/6103/2 "2021-05-29T16:17:26Z")

</div>

In the video, it looked like you didn’t add `eval "$(rbenv init -)"` to your `.zshrc` file. That’s the code that sets up paths for Ruby binary and gems. Zsh loads `~/.zshrc` every time a shell starts (i.e. every time a Terminal window opens), so without the change you only get the default system paths, with the system Ruby.

```auto
# Load rbenv automatically by appending
# the following to ~/.zshrc:

eval "$(rbenv init -)"

```
