I'm trying to install PostgreSQL via asdf-postgres
plugin by running asdf install postgres 12.9
on 2021 MacBook Pro (with M1 Max, running Monterey 12.0.1) but getting the following error:
100 190 100 190 0 0 345 0 --:--:-- --:--:-- --:--:-- 346
/Users/kushal/.asdf/plugins/postgres/bin/install: line 45: uconv: command not found
Building with options: --prefix=/Users/kushal/.asdf/installs/postgres/12.9 --with-uuid=e2fs --with-openssl --with-zlib --with-libraries=/opt/local/lib:/sw/lib:/usr/local/opt/openssl/lib:/opt/homebrew/opt/openssl/lib:/usr/local/lib:/usr/lib --with-includes=/opt/local/lib:/sw/lib:/usr/local/opt/openssl/include:/opt/homebrew/opt/openssl/include:/opt/homebrew/include:/usr/local/include:/usr/local/lib:/usr/lib --with-uuid=e2fs --with-openssl --with-libraries=/usr/local/lib:/opt/homebrew/opt/[email protected]/lib --with-includes=/usr/local/include:/opt/homebrew/opt/[email protected]/include
checking build system type... Invalid configuration `arm64-apple-darwin21.1.0': machine `arm64-apple' not recognized
configure: error: /bin/sh config/config.sub arm64-apple-darwin21.1.0 failed
Please note that I'm trying to install it against OpenSSL 1.1 (which is installed via Homebrew already). Also, I'm exported POSTGRES_EXTRA_CONFIGURE_OPTIONS
in my zshrc
as:
export POSTGRES_EXTRA_CONFIGURE_OPTIONS="--with-uuid=e2fs --with-openssl --with-libraries=/usr/local/lib:/opt/homebrew/opt/[email protected]/lib --with-includes=/usr/local/include:/opt/homebrew/opt/[email protected]/include"
I believe Postgres is already supported on Apple Silicon, am I missing something here?
asdf
and this failing only withasdf
is odd.