# Install Discourse on macOS for development

**URL:** https://meta.discourse.org/t/install-discourse-on-macos-for-development/15772
**Category:** Developer Guides
**Tags:** dev-install, how-to
**Created:** [May 19, 2014, 4:59pm UTC](https://meta.discourse.org/t/install-discourse-on-macos-for-development/15772 "2014-05-19T16:59:50Z")
**Posts on this page:** 20
**Page:** 2

<div class="post-metadata">

### Author: ![MarkDoerr](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/markdoerr/32/549630_2.png) [@MarkDoerr](https://meta.discourse.org/u/MarkDoerr)
#### Post date: [January 11, 2022, 3:44pm UTC](https://meta.discourse.org/t/install-discourse-on-macos-for-development/15772/314 "2022-01-11T15:44:52Z")

</div>

While setting up a new M1 MacBook Air, I was unable to run `bundle install` successfully, getting this error:

`An error occurred while installing openssl (2.2.1), and Bundler cannot continue.`

This Mac came pre-installed with OpenSSL1.1 and the script installs OpenSSL3.0 through Homebrew. After uninstalling 3.0, `bundle install` worked as expected.

---

<div class="post-metadata">

### Author: ![nickmoores](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nickmoores/32/246104_2.png) [@nickmoores](https://meta.discourse.org/u/nickmoores)
#### Post date: [January 12, 2022, 8:34pm UTC](https://meta.discourse.org/t/install-discourse-on-macos-for-development/15772/315 "2022-01-12T20:34:23Z")

</div>

Hi @alxndr did you ever find a fix?

---

<div class="post-metadata">

### Author: ![nickmoores](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nickmoores/32/246104_2.png) [@nickmoores](https://meta.discourse.org/u/nickmoores)
#### Post date: [January 12, 2022, 8:37pm UTC](https://meta.discourse.org/t/install-discourse-on-macos-for-development/15772/316 "2022-01-12T20:37:39Z")

</div>

Thank you this was helpful! On OSX Big Sur, at this step

> [@techAPJ](#):
>
> Install the needed gems
> 
> `bundle install`

I continually run in to:

```plaintext
An error occurred while installing mini_racer (0.6.1), and Bundler cannot continue.

```

I’ve confirmed my gcc is up to date, and haven’t had any other issues with gemfile or dependencies up to this point. Any ideas?

For more context:

```plaintext
make: *** [mini_racer_extension.o] Error 1

make failed, exit code 2

Gem files will remain installed in /Users/nick.moores/discourse/vendor/bundle/ruby/2.6.0/gems/mini_racer-0.6.1 for inspection.
Results logged to /Users/nick.moores/discourse/vendor/bundle/ruby/2.6.0/extensions/universal-darwin-20/2.6.0/mini_racer-0.6.1/gem_make.out

  /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/ext/builder.rb:99:in `run'
  /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/ext/builder.rb:51:in `block in make'
  /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/ext/builder.rb:43:in `each'
  /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/ext/builder.rb:43:in `make'
  /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/ext/ext_conf_builder.rb:62:in `block in build'
  /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/tempfile.rb:295:in `open'
  /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/ext/ext_conf_builder.rb:29:in `build'
  /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/ext/builder.rb:185:in `block in build_extension'
  /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/monitor.rb:230:in `mon_synchronize'
  /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/ext/builder.rb:181:in `build_extension'
  /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/ext/builder.rb:229:in `block in build_extensions'
  /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/ext/builder.rb:226:in `each'
  /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/ext/builder.rb:226:in `build_extensions'
  /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/installer.rb:830:in `build_extensions'
  /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.26/lib/bundler/rubygems_gem_installer.rb:66:in `build_extensions'
  /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.26/lib/bundler/rubygems_gem_installer.rb:26:in `install'
  /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.26/lib/bundler/source/rubygems.rb:192:in `install'
  /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.26/lib/bundler/installer/gem_installer.rb:54:in `install'
  /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.26/lib/bundler/installer/gem_installer.rb:16:in `install_from_spec'
  /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.26/lib/bundler/installer/parallel_installer.rb:186:in `do_install'
  /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.26/lib/bundler/installer/parallel_installer.rb:177:in `block in worker_pool'
  /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.26/lib/bundler/worker.rb:62:in `apply_func'
  /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.26/lib/bundler/worker.rb:57:in `block in process_queue'
  /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.26/lib/bundler/worker.rb:54:in `loop'
  /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.26/lib/bundler/worker.rb:54:in `process_queue'
  /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.26/lib/bundler/worker.rb:91:in `block (2 levels) in create_threads'

```

---

<div class="post-metadata">

### Author: ![schwa](https://avatars.discourse-cdn.com/v4/letter/s/c57346/32.png) [@schwa](https://meta.discourse.org/u/schwa)
#### Post date: [January 13, 2022, 5:25pm UTC](https://meta.discourse.org/t/install-discourse-on-macos-for-development/15772/317 "2022-01-13T17:25:36Z")

</div>

Hi Mark,

> [@MarkDoerr](#):
>
> After uninstalling 3.0, `bundle install` worked as expected.

Do you mean simply `brew uninstall openssl` and then re-run `bundle install` ? On an M1 mba, `bundle install` still errors out with the openssl 2.2.1 message after doing so.

[edit] ah, I had to add `/opt/homebrew/opt/openssl@1.1/bin` to PATH. Let’s see if this works…

[edit2] also had to `brew install node` for ember-cli. Now it’s working!

---

<div class="post-metadata">

### Author: ![jaskaran\_Singh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jaskaran_singh/32/184561_2.png) [@jaskaran\_Singh](https://meta.discourse.org/u/jaskaran_Singh)
#### Post date: [January 20, 2022, 12:46pm UTC](https://meta.discourse.org/t/install-discourse-on-macos-for-development/15772/318 "2022-01-20T12:46:14Z")

</div>

> [@schwa](#):
>
> I had to add `/opt/homebrew/opt/openssl@1.1/bin` to PATH. Let’s see if this works…

Can you please explain where we need to add this path ? I am facing same issue, details will be very helpful !

---

<div class="post-metadata">

### Author: ![schwa](https://avatars.discourse-cdn.com/v4/letter/s/c57346/32.png) [@schwa](https://meta.discourse.org/u/schwa)
#### Post date: [January 20, 2022, 8:21pm UTC](https://meta.discourse.org/t/install-discourse-on-macos-for-development/15772/319 "2022-01-20T20:21:01Z")

</div>

> [@jaskaran\_Singh](#):
>
> where we need to add this path

`export PATH="/usr/local/opt/openssl@1.1/bin:$PATH"`

I also had to mess with the mysql gem to get it to build on ARM. I was using mariadb so it was something like this:

```plaintext
gem install mysql2 -v '0.5.3' -- 
--with-mysql-lib=$(brew --prefix mariadb)/lib 
--with-mysql-dir=$(brew --prefix mariadb) 
--with-mysql-config=$(brew --prefix mariadb)/bin/mysql_config 
--with-mysql-include=$(brew --prefix mariadb)/include
```

---

<div class="post-metadata">

### Author: ![Slim-Kongz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/slim-kongz/32/248945_2.png) [@Slim-Kongz](https://meta.discourse.org/u/Slim-Kongz)
#### Post date: [February 6, 2022, 3:29pm UTC](https://meta.discourse.org/t/install-discourse-on-macos-for-development/15772/320 "2022-02-06T15:29:02Z")

</div>

To start the rails server  
I used `rails server` instead of `bundle exec rails server`  
the `bundle exec rails server` gives me an error.

> Could not find ‘xxx gem’ (Even though I have installed the gem…)

What is the difference between `bundle exec` vs no `bundle exec`?

---

<div class="post-metadata">

### Author: ![Gabriel\_Baierle](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gabriel_baierle/32/249905_2.png) [@Gabriel\_Baierle](https://meta.discourse.org/u/Gabriel_Baierle)
#### Post date: [February 14, 2022, 6:14pm UTC](https://meta.discourse.org/t/install-discourse-on-macos-for-development/15772/321 "2022-02-14T18:14:06Z")

</div>

Have any of you faced this issue while trying the `bundle install`?

```plaintext
An error occurred while installing openssl (2.2.1), and Bundler cannot continue.

In Gemfile:
  cose was resolved to 1.2.0, which depends on
    openssl-signature_algorithm was resolved to 1.1.1, which depends on
      openssl

```

and also:

```plaintext
An error occurred while installing mini_racer (0.6.2), and Bundler cannot continue.

```

---

<div class="post-metadata">

### Author: ![Gabriel\_Baierle](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gabriel_baierle/32/249905_2.png) [@Gabriel\_Baierle](https://meta.discourse.org/u/Gabriel_Baierle)
#### Post date: [February 15, 2022, 7:30pm UTC](https://meta.discourse.org/t/install-discourse-on-macos-for-development/15772/322 "2022-02-15T19:30:43Z")

</div>

I don’t know exactly if this was the catch, but I ran this command:

`gem update --system`

After running it, I relaunched the my terminal, and the `bundle install` worked fine. Didn’t have any other issues after that, just followed the guide.

---

<div class="post-metadata">

### Author: ![Zeshan\_Raja](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zeshan_raja/32/253104_2.png) [@Zeshan\_Raja](https://meta.discourse.org/u/Zeshan_Raja)
#### Post date: [March 15, 2022, 4:13am UTC](https://meta.discourse.org/t/install-discourse-on-macos-for-development/15772/323 "2022-03-15T04:13:51Z")

</div>

Hi! I am currently trying to run `bundle exec rake db:create` but I keep getting redis related errors, specially the following:  
`nil versions are discouraged and will be deprecated in Rubygems 4 Discourse requires Redis 6.2.0 or up`  
I’ve been working on this all weekend and I am just about ready to retire and take up basketweaving. Any help would be really appreciated!

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [March 16, 2022, 6:30pm UTC](https://meta.discourse.org/t/install-discourse-on-macos-for-development/15772/325 "2022-03-16T18:30:26Z")

</div>

Sorry you’re so stuck.

The “nil versions are discouraged” means that it failed to connect and/or get a version from Redis. So it’s not that the version is wrong, but that it’s not finding it.

Did you install with brew install? (which is in [https://raw.githubusercontent.com/techAPJ/install-rails/master/mac](https://raw.githubusercontent.com/techAPJ/install-rails/master/mac) that you should have run if you followed these instructions)

I think the thing to do is to go through [https://raw.githubusercontent.com/techAPJ/install-rails/master/mac](https://raw.githubusercontent.com/techAPJ/install-rails/master/mac) line by line and make sure that stuff worked?

But maybe first, check these things:

Did you do a `bundle install` before trying to do the `bundle exec rake db:migrate`? What does `./bin/rake db:migrate` do?

---

<div class="post-metadata">

### Author: ![Zeshan\_Raja](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zeshan_raja/32/253104_2.png) [@Zeshan\_Raja](https://meta.discourse.org/u/Zeshan_Raja)
#### Post date: [March 16, 2022, 6:55pm UTC](https://meta.discourse.org/t/install-discourse-on-macos-for-development/15772/327 "2022-03-16T18:55:50Z")

</div>

Thank you for replying, Jay.  
I have run `bundle install` within the discourse directory and it ran successfully. However, both commands (`bundle exec rake db:migrate` and `./bin/rake db:migrate`) both show the same nil version error.  
I have tried installed via brew and I also had the idea of installing it line by line, but still the same error.  
Should I try trashing the directory and starting from scratch?

---

<div class="post-metadata">

### Author: ![Kunal\_Verma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kunal_verma/32/253206_2.png) [@Kunal\_Verma](https://meta.discourse.org/u/Kunal_Verma)
#### Post date: [March 16, 2022, 6:59pm UTC](https://meta.discourse.org/t/install-discourse-on-macos-for-development/15772/328 "2022-03-16T18:59:42Z")

</div>

Hey all, i am actually trying to setup discourse on my local system (MacOs)!

I’ve installed all the necessary packages that are needed & listed [here](https://meta.discourse.org/t/beginners-guide-to-install-discourse-on-macos-for-development/15772).

Now as I try executing the command `bundle exec rails server` & try to open [http://localhost:3000/](http://localhost:3000/) , where the app should work, its not showing any result!

Not able to proceed from here on. Tried a lot of things

These are the logs i get after running the above command:

```plaintext
WARNING: Using `bundle exec` to start the server is unnecessary, and will make startup slower. Use `bin/rails s` or `bin/unicorn`.
I, [2022-03-16T19:08:29.394164 #95655] INFO -- : Refreshing Gem list
Starting CSS change watcher
I, [2022-03-16T19:08:45.218876 #95655] INFO -- : listening on addr=127.0.0.1:3000 fd=16
   (49.6ms) SELECT "translation_overrides"."translation_key", "translation_overrides"."value" FROM "translation_overrides" WHERE "translation_overrides"."locale" = 'en'
  Group Load (55.1ms) SELECT "groups"."id", "groups"."name", "groups"."flair_icon", "groups"."flair_upload_id", "groups"."flair_bg_color", "groups"."flair_color" FROM "groups" WHERE (groups.visibility_level = 0) ORDER BY name ASC, "groups"."name" ASC
   (58.4ms) SELECT "categories"."id" FROM "categories" WHERE "categories"."read_restricted" = FALSE
   (50.5ms) SELECT COUNT(*) FROM (SELECT 1 AS one FROM "topics" WHERE "topics"."deleted_at" IS NULL LIMIT 16) subquery_for_count
   (53.5ms) SELECT "users"."id" FROM "users" INNER JOIN "user_auth_tokens" ON "user_auth_tokens"."user_id" = "users"."id" WHERE "users"."admin" = TRUE AND (users.id > 0) ORDER BY user_auth_tokens.created_at LIMIT 1
   (0.6ms) SELECT "categories"."id" FROM "categories" WHERE "categories"."topic_featured_link_allowed" = TRUE
   (5.2ms) SELECT "themes"."id", "themes"."name", "themes"."color_scheme_id" FROM "themes" WHERE (id = 1 OR user_selectable) ORDER BY lower(name)
  ColorScheme Load (59.7ms) SELECT "color_schemes".* FROM "color_schemes" WHERE (user_selectable) ORDER BY "color_schemes"."name" ASC
  ColorSchemeColor Load (43.9ms) SELECT "color_scheme_colors".* FROM "color_scheme_colors" WHERE "color_scheme_colors"."color_scheme_id" IN (1, 3, 2) ORDER BY id ASC
  ColorScheme Load (3.9ms) SELECT "color_schemes".* FROM "color_schemes" WHERE "color_schemes"."id" = 1 LIMIT 1
  Category Load (25.2ms) SELECT categories.*, t.slug topic_slug FROM "categories" LEFT JOIN topics t on t.id = categories.topic_id ORDER BY "categories"."position" ASC
  CategoryTag Load (45.2ms) SELECT "category_tags".* FROM "category_tags" WHERE "category_tags"."category_id" IN (1, 2, 3, 4)
  CategoryTagGroup Load (36.2ms) SELECT "category_tag_groups".* FROM "category_tag_groups" WHERE "category_tag_groups"."category_id" IN (1, 2, 3, 4)
  UserField Load (43.7ms) SELECT "user_fields".* FROM "user_fields" ORDER BY "user_fields"."position" ASC
  Upload Load (51.5ms) SELECT "uploads"."id", "uploads"."user_id", "uploads"."original_filename", "uploads"."filesize", "uploads"."width", "uploads"."height", "uploads"."url", "uploads"."created_at", "uploads"."updated_at", "uploads"."sha1", "uploads"."origin", "uploads"."retain_hours", "uploads"."extension", "uploads"."thumbnail_width", "uploads"."thumbnail_height", "uploads"."etag", "uploads"."secure", "uploads"."access_control_post_id", "uploads"."original_sha1", "uploads"."animated", "uploads"."verification_status", "uploads"."security_last_changed_at", "uploads"."security_last_changed_reason" FROM "uploads" WHERE "uploads"."id" = -5 LIMIT 1
  Upload Load (1.6ms) SELECT "uploads"."id", "uploads"."user_id", "uploads"."original_filename", "uploads"."filesize", "uploads"."width", "uploads"."height", "uploads"."url", "uploads"."created_at", "uploads"."updated_at", "uploads"."sha1", "uploads"."origin", "uploads"."retain_hours", "uploads"."extension", "uploads"."thumbnail_width", "uploads"."thumbnail_height", "uploads"."etag", "uploads"."secure", "uploads"."access_control_post_id", "uploads"."original_sha1", "uploads"."animated", "uploads"."verification_status", "uploads"."security_last_changed_at", "uploads"."security_last_changed_reason" FROM "uploads" WHERE "uploads"."id" = -6 LIMIT 1
   (2.1ms) SELECT "groups"."flair_icon" FROM "groups"
   (45.0ms) SELECT "badges"."icon" FROM "badges"
  OptimizedImage Load (47.4ms) SELECT "optimized_images".* FROM "optimized_images" WHERE "optimized_images"."upload_id" = -6 AND "optimized_images"."height" = 32 AND "optimized_images"."width" = 32 LIMIT 1
#<Thread:0x00000001132a3ed8 lib/discourse.rb:988 run> terminated with exception (report_on_exception is true):
/Users/kunalverma/discourse/lib/letter_avatar.rb:105:in ``': No such file or directory - convert (Errno::ENOENT)
	from /Users/kunalverma/discourse/lib/letter_avatar.rb:105:in `image_magick_version'
	from lib/discourse.rb:989:in `block in preload_rails!'
  Permalink Exists? (252.0ms) SELECT 1 AS one FROM "permalinks" WHERE "permalinks"."url" = 'abc' LIMIT 1
  Permalink Exists? (50.3ms) SELECT 1 AS one FROM "permalinks" WHERE "permalinks"."url" = 'abc' LIMIT 1
E, [2022-03-16T19:08:48.828448 #95655] ERROR -- : No such file or directory - convert (Errno::ENOENT)
/Users/kunalverma/discourse/lib/letter_avatar.rb:105:in ``'
/Users/kunalverma/discourse/lib/letter_avatar.rb:105:in `image_magick_version'
lib/discourse.rb:989:in `block in preload_rails!'

```

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [March 16, 2022, 7:15pm UTC](https://meta.discourse.org/t/install-discourse-on-macos-for-development/15772/329 "2022-03-16T19:15:20Z")

</div>

> [@Kunal\_Verma](#):
>
> ```plaintext
> /Users/kunalverma/discourse/lib/letter_avatar.rb:105:in `image_magick_version'
> 
> ```

Looks like you have a problmem with image Magick.

Also, what is supposed to happen is that this keeps running, Then you’ll also need to do `./bin/ember_cli` (I think that’s it) in another terminal and the point your browser to localhost:4200.

---

<div class="post-metadata">

### Author: ![Kunal\_Verma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kunal_verma/32/253206_2.png) [@Kunal\_Verma](https://meta.discourse.org/u/Kunal_Verma)
#### Post date: [March 17, 2022, 10:30am UTC](https://meta.discourse.org/t/install-discourse-on-macos-for-development/15772/330 "2022-03-17T10:30:16Z")

</div>

I agree with your point that this should keep running, but thats not the case here! This command gets executed and then exits!  
Also, can you pls elaborate a bit more on how can i fix the `image Magick` issue here. Not able to understand!

Would i have to install `image Margick` separately, from [here](https://imagemagick.org/script/command-line-tools.php)?

---

<div class="post-metadata">

### Author: ![lin\_turing](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lin_turing/32/254613_2.png) [@lin\_turing](https://meta.discourse.org/u/lin_turing)
#### Post date: [March 30, 2022, 1:22pm UTC](https://meta.discourse.org/t/install-discourse-on-macos-for-development/15772/331 "2022-03-30T13:22:04Z")

</div>

![image](https://global.discourse-cdn.com/meta/original/3X/8/3/832e0848b0dc7189669e5bd16531dcafae62f646.jpeg)  
On M1 MacBook Pro, i want to running discourse, but when i type  
 ![image](https://global.discourse-cdn.com/meta/original/3X/e/f/ef607933ea09d58ec80769d49b9051dcf7f5bb3c.png)  
,i can’t access port:4200

---

<div class="post-metadata">

### Author: ![Decorbuz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/decorbuz/32/235124_2.png) [@Decorbuz](https://meta.discourse.org/u/Decorbuz)
#### Post date: [March 30, 2022, 1:52pm UTC](https://meta.discourse.org/t/install-discourse-on-macos-for-development/15772/332 "2022-03-30T13:52:51Z")

</div>

Back in November, I ran into the same issue on my M1 iMac and managed to solve it thanks to a brilliant member here.

> [@Can't start localhost server -- file was built for x86\_64 which is not the architecture being linked (i386)](https://meta.discourse.org/t/cant-start-localhost-server-file-was-built-for-x86-64-which-is-not-the-architecture-being-linked-i386/108193/13):
>
> I’m glad this topic was bumped (purely by coincidence). I guess the issue has been around for a while and isn’t limited to Apple Silicon Macs. I was having the same issue on my M1 iMac following the same guide as you. @blake was awesome and managed to find a workaround for me. grinning I was able to get it working on my m1 mac. I’m not exactly sure what the issue is, but this is a work around that you can use. From the first terminal tab run: bin/rails server --binding 127.0.0.1 From the…

---

<div class="post-metadata">

### Author: ![nickmoores](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nickmoores/32/246104_2.png) [@nickmoores](https://meta.discourse.org/u/nickmoores)
#### Post date: [April 12, 2022, 8:37pm UTC](https://meta.discourse.org/t/install-discourse-on-macos-for-development/15772/333 "2022-04-12T20:37:53Z")

</div>

Hi, I had the _exact_ same issues you did in your post, and I’ve tried  
`gem update --system`

and re-attempting and I still get

```plaintext
An error occurred while installing openssl (2.2.1), and Bundler cannot
continue.

In Gemfile:
  cose was resolved to 1.2.0, which depends on
    openssl-signature_algorithm was resolved to 1.1.1, which depends on
      openssl

```

Any other ideas? maybe I’ll try `gem update --system` one more time?

---

<div class="post-metadata">

### Author: ![nickmoores](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nickmoores/32/246104_2.png) [@nickmoores](https://meta.discourse.org/u/nickmoores)
#### Post date: [April 12, 2022, 9:44pm UTC](https://meta.discourse.org/t/install-discourse-on-macos-for-development/15772/334 "2022-04-12T21:44:01Z")

</div>

> [@nickmoores](#):
>
> ```plaintext
> cose was resolved to 1.2.0, which depends on
> openssl-signature_algorithm was resolved to 1.1.1, which depends on
> openssl
> 
> ```

I’ve been able to update openssl, but how to get Bundler to use the updated openssl and not the old 1.1.1?

---

<div class="post-metadata">

### Author: ![alexfowler](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alexfowler/32/257470_2.png) [@alexfowler](https://meta.discourse.org/u/alexfowler)
#### Post date: [April 20, 2022, 4:05am UTC](https://meta.discourse.org/t/install-discourse-on-macos-for-development/15772/335 "2022-04-20T04:05:00Z")

</div>

Hi, I’m trying to setup Discourse on MacOS Catalina (Version 10.15.7) but am encountering an error about no password supplied when I try to run the `bundle exec rake db:create`.

I had a pre-existing postgres database instance running on my machine prior to my attempted installation of Discourse, I think that could be a factor. How should I resolve this?

Here’s the error stacktrace:

```plaintext
connection to server on socket "/tmp/.s.PGSQL.5432" failed: fe_sendauth: no password supplied
Couldn't create 'discourse_development' database. Please check your configuration.
rake aborted!
ActiveRecord::ConnectionNotEstablished: connection to server on socket "/tmp/.s.PGSQL.5432" failed: fe_sendauth: no password supplied
/Users/alexfowler/discourse/vendor/bundle/ruby/2.7.0/gems/activerecord-6.1.4.7/lib/active_record/connection_adapters/postgresql_adapter.rb:83:in `rescue in new_client'
/Users/alexfowler/discourse/vendor/bundle/ruby/2.7.0/gems/activerecord-6.1.4.7/lib/active_record/connection_adapters/postgresql_adapter.rb:77:in `new_client'
/Users/alexfowler/discourse/vendor/bundle/ruby/2.7.0/gems/activerecord-6.1.4.7/lib/active_record/connection_adapters/postgresql_adapter.rb:37:in `postgresql_connection'
/Users/alexfowler/discourse/vendor/bundle/ruby/2.7.0/gems/activerecord-6.1.4.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:882:in `public_send'
/Users/alexfowler/discourse/vendor/bundle/ruby/2.7.0/gems/activerecord-6.1.4.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:882:in `new_connection'
/Users/alexfowler/discourse/vendor/bundle/ruby/2.7.0/gems/activerecord-6.1.4.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:926:in `checkout_new_connection'
/Users/alexfowler/discourse/vendor/bundle/ruby/2.7.0/gems/activerecord-6.1.4.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:905:in `try_to_checkout_new_connection'
/Users/alexfowler/discourse/vendor/bundle/ruby/2.7.0/gems/activerecord-6.1.4.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:866:in `acquire_connection'
/Users/alexfowler/discourse/vendor/bundle/ruby/2.7.0/gems/activerecord-6.1.4.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:588:in `checkout'
/Users/alexfowler/discourse/vendor/bundle/ruby/2.7.0/gems/activerecord-6.1.4.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:428:in `connection'
/Users/alexfowler/discourse/vendor/bundle/ruby/2.7.0/gems/activerecord-6.1.4.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:1128:in `retrieve_connection'
/Users/alexfowler/discourse/vendor/bundle/ruby/2.7.0/gems/activerecord-6.1.4.7/lib/active_record/connection_handling.rb:327:in `retrieve_connection'
/Users/alexfowler/discourse/vendor/bundle/ruby/2.7.0/gems/activerecord-6.1.4.7/lib/active_record/connection_handling.rb:283:in `connection'
/Users/alexfowler/discourse/vendor/bundle/ruby/2.7.0/gems/activerecord-6.1.4.7/lib/active_record/tasks/postgresql_database_tasks.rb:12:in `connection'
/Users/alexfowler/discourse/vendor/bundle/ruby/2.7.0/gems/activerecord-6.1.4.7/lib/active_record/tasks/postgresql_database_tasks.rb:26:in `create'
/Users/alexfowler/discourse/vendor/bundle/ruby/2.7.0/gems/activerecord-6.1.4.7/lib/active_record/tasks/database_tasks.rb:133:in `create'
/Users/alexfowler/discourse/vendor/bundle/ruby/2.7.0/gems/activerecord-6.1.4.7/lib/active_record/tasks/database_tasks.rb:193:in `block in create_current'
/Users/alexfowler/discourse/vendor/bundle/ruby/2.7.0/gems/discourse_dev_assets-0.0.3/lib/discourse_dev_assets.rb:27:in `block in each_current_configuration'
/Users/alexfowler/discourse/vendor/bundle/ruby/2.7.0/gems/activerecord-6.1.4.7/lib/active_record/tasks/database_tasks.rb:506:in `block (2 levels) in each_current_configuration'
/Users/alexfowler/discourse/vendor/bundle/ruby/2.7.0/gems/activerecord-6.1.4.7/lib/active_record/tasks/database_tasks.rb:503:in `each'
/Users/alexfowler/discourse/vendor/bundle/ruby/2.7.0/gems/activerecord-6.1.4.7/lib/active_record/tasks/database_tasks.rb:503:in `block in each_current_configuration'
/Users/alexfowler/discourse/vendor/bundle/ruby/2.7.0/gems/activerecord-6.1.4.7/lib/active_record/tasks/database_tasks.rb:502:in `each'
/Users/alexfowler/discourse/vendor/bundle/ruby/2.7.0/gems/activerecord-6.1.4.7/lib/active_record/tasks/database_tasks.rb:502:in `each_current_configuration'
/Users/alexfowler/discourse/vendor/bundle/ruby/2.7.0/gems/discourse_dev_assets-0.0.3/lib/discourse_dev_assets.rb:22:in `each_current_configuration'
/Users/alexfowler/discourse/vendor/bundle/ruby/2.7.0/gems/activerecord-6.1.4.7/lib/active_record/tasks/database_tasks.rb:193:in `create_current'
/Users/alexfowler/discourse/vendor/bundle/ruby/2.7.0/gems/activerecord-6.1.4.7/lib/active_record/railties/databases.rake:45:in `block (2 levels) in <main>'
/Users/alexfowler/discourse/vendor/bundle/ruby/2.7.0/gems/rake-13.0.6/exe/rake:27:in `<top (required)>'
/Users/alexfowler/.rbenv/versions/2.7.6/bin/bundle:23:in `load'
/Users/alexfowler/.rbenv/versions/2.7.6/bin/bundle:23:in `<main>'

Caused by:
PG::ConnectionBad: connection to server on socket "/tmp/.s.PGSQL.5432" failed: fe_sendauth: no password supplied
/Users/alexfowler/discourse/vendor/bundle/ruby/2.7.0/gems/pg-1.3.5/lib/pg/connection.rb:637:in `async_connect_or_reset'
/Users/alexfowler/discourse/vendor/bundle/ruby/2.7.0/gems/pg-1.3.5/lib/pg/connection.rb:707:in `new'
/Users/alexfowler/discourse/vendor/bundle/ruby/2.7.0/gems/pg-1.3.5/lib/pg.rb:69:in `connect'
/Users/alexfowler/discourse/vendor/bundle/ruby/2.7.0/gems/activerecord-6.1.4.7/lib/active_record/connection_adapters/postgresql_adapter.rb:78:in `new_client'
/Users/alexfowler/discourse/vendor/bundle/ruby/2.7.0/gems/activerecord-6.1.4.7/lib/active_record/connection_adapters/postgresql_adapter.rb:37:in `postgresql_connection'
/Users/alexfowler/discourse/vendor/bundle/ruby/2.7.0/gems/activerecord-6.1.4.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:882:in `public_send'
/Users/alexfowler/discourse/vendor/bundle/ruby/2.7.0/gems/activerecord-6.1.4.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:882:in `new_connection'
/Users/alexfowler/discourse/vendor/bundle/ruby/2.7.0/gems/activerecord-6.1.4.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:926:in `checkout_new_connection'
/Users/alexfowler/discourse/vendor/bundle/ruby/2.7.0/gems/activerecord-6.1.4.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:905:in `try_to_checkout_new_connection'
/Users/alexfowler/discourse/vendor/bundle/ruby/2.7.0/gems/activerecord-6.1.4.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:866:in `acquire_connection'
/Users/alexfowler/discourse/vendor/bundle/ruby/2.7.0/gems/activerecord-6.1.4.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:588:in `checkout'
/Users/alexfowler/discourse/vendor/bundle/ruby/2.7.0/gems/activerecord-6.1.4.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:428:in `connection'
/Users/alexfowler/discourse/vendor/bundle/ruby/2.7.0/gems/activerecord-6.1.4.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:1128:in `retrieve_connection'
/Users/alexfowler/discourse/vendor/bundle/ruby/2.7.0/gems/activerecord-6.1.4.7/lib/active_record/connection_handling.rb:327:in `retrieve_connection'
/Users/alexfowler/discourse/vendor/bundle/ruby/2.7.0/gems/activerecord-6.1.4.7/lib/active_record/connection_handling.rb:283:in `connection'
/Users/alexfowler/discourse/vendor/bundle/ruby/2.7.0/gems/activerecord-6.1.4.7/lib/active_record/tasks/postgresql_database_tasks.rb:12:in `connection'
/Users/alexfowler/discourse/vendor/bundle/ruby/2.7.0/gems/activerecord-6.1.4.7/lib/active_record/tasks/postgresql_database_tasks.rb:26:in `create'
/Users/alexfowler/discourse/vendor/bundle/ruby/2.7.0/gems/activerecord-6.1.4.7/lib/active_record/tasks/database_tasks.rb:133:in `create'
/Users/alexfowler/discourse/vendor/bundle/ruby/2.7.0/gems/activerecord-6.1.4.7/lib/active_record/tasks/database_tasks.rb:193:in `block in create_current'
/Users/alexfowler/discourse/vendor/bundle/ruby/2.7.0/gems/discourse_dev_assets-0.0.3/lib/discourse_dev_assets.rb:27:in `block in each_current_configuration'
/Users/alexfowler/discourse/vendor/bundle/ruby/2.7.0/gems/activerecord-6.1.4.7/lib/active_record/tasks/database_tasks.rb:506:in `block (2 levels) in each_current_configuration'
/Users/alexfowler/discourse/vendor/bundle/ruby/2.7.0/gems/activerecord-6.1.4.7/lib/active_record/tasks/database_tasks.rb:503:in `each'
/Users/alexfowler/discourse/vendor/bundle/ruby/2.7.0/gems/activerecord-6.1.4.7/lib/active_record/tasks/database_tasks.rb:503:in `block in each_current_configuration'
/Users/alexfowler/discourse/vendor/bundle/ruby/2.7.0/gems/activerecord-6.1.4.7/lib/active_record/tasks/database_tasks.rb:502:in `each'
/Users/alexfowler/discourse/vendor/bundle/ruby/2.7.0/gems/activerecord-6.1.4.7/lib/active_record/tasks/database_tasks.rb:502:in `each_current_configuration'
/Users/alexfowler/discourse/vendor/bundle/ruby/2.7.0/gems/discourse_dev_assets-0.0.3/lib/discourse_dev_assets.rb:22:in `each_current_configuration'
/Users/alexfowler/discourse/vendor/bundle/ruby/2.7.0/gems/activerecord-6.1.4.7/lib/active_record/tasks/database_tasks.rb:193:in `create_current'
/Users/alexfowler/discourse/vendor/bundle/ruby/2.7.0/gems/activerecord-6.1.4.7/lib/active_record/railties/databases.rake:45:in `block (2 levels) in <main>'
/Users/alexfowler/discourse/vendor/bundle/ruby/2.7.0/gems/rake-13.0.6/exe/rake:27:in `<top (required)>'
/Users/alexfowler/.rbenv/versions/2.7.6/bin/bundle:23:in `load'
/Users/alexfowler/.rbenv/versions/2.7.6/bin/bundle:23:in `<main>'
Tasks: TOP => db:create
(See full trace by running task with --trace)

```

[Previous page](https://meta.discourse.org/t/install-discourse-on-macos-for-development/15772.md?page=1)

[Next page](https://meta.discourse.org/t/install-discourse-on-macos-for-development/15772.md?page=3)
