# Ruby uses different gem path on macOS than specified in the documentation

**URL:** <https://talk.jekyllrb.com/t/ruby-uses-different-gem-path-on-macos-than-specified-in-the-documentation/6817>\
**Category:** Site Feedback\
**Created:** [December 20, 2021, 10:32am UTC](https://talk.jekyllrb.com/t/ruby-uses-different-gem-path-on-macos-than-specified-in-the-documentation/6817 "2021-12-20T10:32:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![petermueller](https://avatars.discourse-cdn.com/v4/letter/p/919ad9/32.png) [@petermueller](https://talk.jekyllrb.com/u/petermueller)\
**Post date:** [December 20, 2021, 10:32am UTC](https://talk.jekyllrb.com/t/ruby-uses-different-gem-path-on-macos-than-specified-in-the-documentation/6817/1 "2021-12-20T10:32:14Z")

</div>

Hi everyone,

I just did a fresh install of Ruby on my macOS (12.0.1 Monterey). It seems that when Ruby is installed via Homebrew it uses another PATH than specified in the documentation:

[Documentation](https://jekyllrb.com/docs/installation/macos/#local-install): `$HOME/.gem/ruby/X.X.0/bin`

On my machine: `$HOME/.local/share/gem/ruby/3.0.0/bin`

Can somebody reproduce/confirm?

Thanks, Peter

---

<div class="post-metadata">

**Author:** ![MichaelCurrin](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/michaelcurrin/32/2340_2.png) [@MichaelCurrin](https://talk.jekyllrb.com/u/MichaelCurrin)\
**Post date:** [December 20, 2021, 7:33pm UTC](https://talk.jekyllrb.com/t/ruby-uses-different-gem-path-on-macos-than-specified-in-the-documentation/6817/2 "2021-12-20T19:33:12Z")

</div>

For first .gem path is for Ruby 2

And the latter for Ruby 3.

I cover this in my own notes

> <https://gist.github.com/MichaelCurrin/fb758aea4d35e03b9ed093afddf4e7ec#user-install>

I guess the docs should cover both or the Ruby 2 one should be replaced.
