Skip to content

Can't install from source on MacOS X Sequoia #891

Description

@vpredoehl

link fails with running ./configure && make

clang -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Werror=unguarded-availability-new -Wendif-labels -Wmissing-format-attribute -Wcast-function-type -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-unused-command-line-argument -Wno-compound-token-split-by-macro -Wno-cast-function-type-strict -O2 -fvisibility=hidden -bundle -o repmgr.dylib repmgr.o -lcurl -ljson-c -L/Volumes/Darwin/homebrew/lib/postgresql@17 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk -L/opt/homebrew/opt/gettext/lib -L/opt/homebrew/opt/krb5/lib -L/opt/homebrew/opt/openssl@3/lib -L/opt/homebrew/opt/readline/lib -L/opt/homebrew/opt/lz4/lib -L/opt/homebrew/opt/zstd/lib -Wl,-dead_strip_dylibs -fvisibility=hidden -L/Volumes/Darwin/homebrew/lib/postgresql@17 -lpq -bundle_loader /Volumes/Darwin/homebrew/Cellar/postgresql@17/17.4_1/bin/postgres
ld: library 'json-c' not found
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Here's my path:

/opt/homebrew/bin/:/opt/homebrew/opt/postgresql@17/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin

I have postgresql@17 installed with HomeBrew. I don't see many options to install repmgr on Darwin / MacOS X Sequoia. Brew does not have the repmgr package, neither does macports.

I seem to be missing some prerequisite, but I have no idea how to figure out what it is.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions