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 stepssource .zprofile
Install dependencies with Homebrew
brew install git brew install rbenv
rbenv install ruby 3.4.6 rbenv global 3.4.6 ruby --version
Postgres installation seems a bit fragile. Apparently you can end up with corrupted files and a rather easy approach then is to delete them and install again: