From e3664380c48f891265f242f2bb6ed209f05dd367 Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Sun, 25 Sep 2022 02:49:16 +0100 Subject: [PATCH] build: fix starting Postgres in macOS build script The brew command fails with: Could not enable service: 125: Domain does not support specified action Error: Failure while executing; `/bin/launchctl enable gui/501/homebrew.mxcl.postgresql@14` exited with 125. --- scripts/build/build_macos_arm64.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/build/build_macos_arm64.sh b/scripts/build/build_macos_arm64.sh index 23e4aa10..fa185900 100755 --- a/scripts/build/build_macos_arm64.sh +++ b/scripts/build/build_macos_arm64.sh @@ -38,7 +38,12 @@ fi # Install PostgreSQL, if necessary command -v pg_config > /dev/null || ( brew install postgresql@${postgres_version} - brew services start postgresql + # Currently not working + # brew services start postgresql@${postgres_version} + pg_ctl \ + -D /opt/homebrew/var/postgresql@${postgres_version} \ + -l /opt/homebrew/var/log/postgresql@${postgres_version}.log \ + start ) # Install the Python versions we want to build