Installation possible on macOS? #636
-
I am running macOS 13.4, and on running
Not quire sure why it's looking in the I am guessing it needs I have done |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments
-
Here is the output from
Can't see for the life of me where this is referenced anywhere in the repo. Have not done C for 30 years. |
Beta Was this translation helpful? Give feedback.
-
Not on a Mac myself so consulted with some coworkers. The original compiler/OS version flags postgres was built with would have been recorded in Where did you originally acquire Postgres? |
Beta Was this translation helpful? Give feedback.
-
Well I had installed it from the downloaded file from the Postgres website; that gave a similar, more elaborate error. So this message is from the homebrew installation. I'm going to try with the docker image today. But I can't imagine it's picking that compiler config from my machine, since that is not the available clang? |
Beta Was this translation helpful? Give feedback.
-
Apologies, really not sure what's happening here and since I'm not on a Mac it's hard to diagnose. I've labeled this as Help Wanted to see if anyone else that comes around might be able to assist. If you do find a solution, I would appreciate if you shared it here as well. |
Beta Was this translation helpful? Give feedback.
-
Had someone else report some issues on Mac and a solution was found here - #596 Not sure if this applies in your case as well |
Beta Was this translation helpful? Give feedback.
-
This is how I install pg_partman into Mac OS for any of the different versions I am running in the Mac OS Postgres app as well as Brew outside of the app, I just put the path to the lib for the version I want to install it for.
You can see that if you run
BINDIR = /Applications/Postgres.app/Contents/Versions/14/bin
DOCDIR = /Applications/Postgres.app/Contents/Versions/14/share/doc/postgresql
HTMLDIR = /Applications/Postgres.app/Contents/Versions/14/share/doc/postgresql
INCLUDEDIR = /Applications/Postgres.app/Contents/Versions/14/include
PKGINCLUDEDIR = /Applications/Postgres.app/Contents/Versions/14/include/postgresql
INCLUDEDIR-SERVER = /Applications/Postgres.app/Contents/Versions/14/include/postgresql/server
LIBDIR = /Applications/Postgres.app/Contents/Versions/14/lib
PKGLIBDIR = /Applications/Postgres.app/Contents/Versions/14/lib/postgresql
LOCALEDIR = /Applications/Postgres.app/Contents/Versions/14/share/locale
MANDIR = /Applications/Postgres.app/Contents/Versions/14/share/man
SHAREDIR = /Applications/Postgres.app/Contents/Versions/14/share/postgresql
SYSCONFDIR = /Applications/Postgres.app/Contents/Versions/14/etc/postgresql
PGXS = /Applications/Postgres.app/Contents/Versions/14/lib/postgresql/pgxs/src/makefiles/pgxs.mk
CONFIGURE = '--prefix=/Applications/Postgres.app/Contents/Versions/14' '--with-includes=/Applications/Postgres.app/Contents/Versions/14/include' '--with-libraries=/Applications/Postgres.app/Contents/Versions/14/lib' '--enable-thread-safety' '--with-openssl' '--with-bonjour' '--with-libxml' '--with-libxslt' '--with-python' '--with-readline' '--with-uuid=e2fs' '--with-icu' '--with-extra-version= (Postgres.app)' '--with-lz4' 'CFLAGS= -Os -mmacosx-version-min=10.12 -arch arm64 -arch x86_64' 'CXXFLAGS= -Os -mmacosx-version-min=10.12 -arch arm64 -arch x86_64' 'PKG_CONFIG_LIBDIR=/Applications/Postgres.app/Contents/Versions/14/lib/pkgconfig' 'ICU_CFLAGS=-I/Applications/Postgres.app/Contents/Versions/14/share/icu' 'ICU_LIBS=-licui18n -licuuc' 'PYTHON=/Library/Frameworks/Python.framework/Versions/3.9/bin/python3'
CC = gcc
CPPFLAGS = -I/Applications/Postgres.app/Contents/Versions/14/share/icu -I/Applications/Postgres.app/Contents/Versions/14/include/libxml2 -I/Applications/Postgres.app/Contents/Versions/14/include -I/Applications/Postgres.app/Contents/Versions/14/include
CFLAGS = -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Werror=unguarded-availability-new -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -Wno-unused-command-line-argument -Os -mmacosx-version-min=10.12 -arch arm64 -arch x86_64
CFLAGS_SL =
LDFLAGS = -L/Applications/Postgres.app/Contents/Versions/14/lib -L/Applications/Postgres.app/Contents/Versions/14/lib -L/Applications/Postgres.app/Contents/Versions/14/lib -Wl,-dead_strip_dylibs
LDFLAGS_EX =
LDFLAGS_SL =
LIBS = -lpgcommon -lpgport -llz4 -lxslt -lxml2 -lssl -lcrypto -lz -lreadline -lm
VERSION = PostgreSQL 14.11 (Postgres.app) You get the ability to make sure that everything is correct before running it. In my case I have Pg 13 - 16 on Mac, and I can run different versions of extensions in each version of Postgres. Since I don't need this PATH configured all the time I just use It in the CLI for installing stuff. @keithf4 @jambudipa |
Beta Was this translation helpful? Give feedback.
-
Thanks very much for the suggestion! I'm going to move this into a discussion Q &A for future reference |
Beta Was this translation helpful? Give feedback.
This is how I install pg_partman into Mac OS for any of the different versions I am running in the Mac OS Postgres app as well as Brew outside of the app, I just put the path to the lib for the version I want to install it for.
You can see that if you run