# 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:** 1

<div class="post-metadata">

**Author:** ![taco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/taco/32/181150_2.png) [@taco](https://meta.discourse.org/u/taco)\
**Post date:** [22 ביוני,‏ 2020,‏ 7:48pm UTC](https://meta.discourse.org/t/macos-installation-gem-filepermissionerror/155607/1 "2020-06-22T19:48:24Z")

</div>

When installing Discourse (for development) on my Mac I get this error:

```plaintext
ERROR: While executing gem ... (Gem::FilePermissionError)
    You don't have write permissions for the /Library/Ruby/Gems/2.6.0 directory.

```

How can I resolve this?  
Thanks.

---

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