Discourse auf macOS für die Entwicklung installieren

I’ve been trying all day to do this but can’t get it to work.

Currently stuck at this stage, when I use bundle install I get the following errors:

compiling cppjieba_rb.c
compiling internal.cc make: *** [internal.o] Error 1 
make failed, exit code 2 
An error occurred while installing cppjieba_rb (0.4.4), and Bundler cannot continue.

I am on an M4 MacBook Pro. Any help appreciated!

Just finished setting up a dev environment from scratch on a factory-reset MacBook. I used Homebrew for everything I could. Not saying this is the best approach, but that’s my step-by-step:

If new installs don’t show, update shell during steps source .zprofile

Install dependencies with Homebrew

brew install git
brew install rbenv

rbenv install ruby 3.4.6
rbenv global 3.4.6
ruby --version

gem update
gem install rails
rails --version

brew install postgresql pgvector
brew services start postgres
brew install redis
brew services start redis
brew install nvm (see nvm — Homebrew Formulae for shell profile adjustments)

nvm --version
nvm install 22
node -v

brew install pnpm

Install Discourse

Same as op, starting at Clone Discourse

4 „Gefällt mir“