# MacOS Installation Gem::FilePermissionError

**URL:** <https://meta.discourse.org/t/macos-installation-gem-filepermissionerror/155607>\
**Category:** Self-hosting\
**Created:** [22 ביוני,‏ 2020,‏ 7:48pm UTC](https://meta.discourse.org/t/macos-installation-gem-filepermissionerror/155607 "2020-06-22T19:48:24Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![justin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/justin/32/157614_2.png) [@justin](https://meta.discourse.org/u/justin)\
**Post date:** [22 ביוני,‏ 2020,‏ 8:17pm UTC](https://meta.discourse.org/t/macos-installation-gem-filepermissionerror/155607/10 "2020-06-22T20:17:43Z")

</div>

Okay, so you’re using the system ruby for Discourse which is why you’re getting that issue.

Check the PATH variable by typing in `echo $PATH`. You should see `/Users/<your username>/.rbenv/bin` and `/Users/<your username>/.rbenv/shims` listed in there.

If not, add them in your shell’s configuration file `.bashrc` or .`zshrc`. For ZSH you can add it like this: `export PATH=/path/number/1:/path/number/2:$PATH`

If you do see them, check to see what order they’re in. If they are later in the chain, they’re probably not getting loaded before the system ruby meaning the system ruby is being used for Discourse. You can use the same approach above for moving the paths further up the chain.

---

_[View the full topic](https://meta.discourse.org/t/macos-installation-gem-filepermissionerror/155607)._
