# MacOS Installation Gem::FilePermissionError

**URL:** https://meta.discourse.org/t/macos-installation-gem-filepermissionerror/155607
**Category:** Self-hosting
**Created:** [June 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:** 2

<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: [June 22, 2020, 7:57pm UTC](https://meta.discourse.org/t/macos-installation-gem-filepermissionerror/155607/2 "2020-06-22T19:57:09Z")

</div>

Did you run through the script install of Discourse here?

> [@Install Discourse on macOS for development](https://meta.discourse.org/t/beginners-guide-to-install-discourse-on-macos-for-development/15772):
>
> warning This guide covers installation instructions for a macOS development environment, for production guides see: [Install Discourse in production with the official supported instructions](https://meta.discourse.org/t/how-to-install-discourse-in-production/142537) So you want to set up Discourse on macOS to hack on and develop with? We’ll assume that you don’t have Ruby/Rails/Postgres/Redis installed on your Mac. Let’s begin rocket ! Install Discourse Dependencies You will need the following packages on your system: [Git](http://git-scm.com/)[rbenv](https://github.com/sstephenson/rbenv) or [asdf](https://asdf-vm.com/guide/getting-started.html)[ruby-build](https://github.com/sstephenson/ruby-build)[Ruby](https://www.ruby-lang.org/) (latest s…

Are you running macOS Catalina? If that’s the case, it sounds like you’re running into Discourse trying to use the system version of ruby. You’ll want to use something like `rbenv` to set your ruby version to avoid this.

---

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