Sample Header Ad - 728x90

Error while installing PostgreSQL 12.9 on Apple Silicon (M1 Max) via asdf

1 vote
2 answers
1380 views
I'm trying to install PostgreSQL via [asdf-postgres](https://github.com/smashedtoatoms/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/openssl@1.1/lib --with-includes=/usr/local/include:/opt/homebrew/opt/openssl@1.1/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/openssl@1.1/lib --with-includes=/usr/local/include:/opt/homebrew/opt/openssl@1.1/include"
I believe Postgres is already supported on Apple Silicon, am I missing something here?
Asked by Kushal (111 rep)
Nov 21, 2021, 06:55 AM
Last activity: Feb 21, 2025, 10:08 AM