Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[macOS Monterey] Cannot find libpq-fe.h – how to disable PostgreSQL dependency #99

Closed
awinecki opened this issue Nov 2, 2021 · 1 comment · Fixed by #102
Closed

Comments

@awinecki
Copy link

awinecki commented Nov 2, 2021

After installing all brew dependencies (brew install autoconf automake bison freetype gd gettext icu4c krb5 libedit libiconv libjpeg libpng libxml2 libzip pkg-config re2c zlib), I'm stuck at PostgreSQL check:

checking for PDO_DBLIB support via FreeTDS... no
checking for Firebird support for PDO... no
checking for MySQL support for PDO... yes
checking for MySQL UNIX socket location... no
checking for PDO includes... checking for PDO includes... /var/folders/x5/0v2t1jt94xx3k5n6v764v8qw0000gn/T/php-src-php-7.2.34/ext
checking Oracle OCI support for PDO... no
checking for ODBC v3 support for PDO... no
checking for PostgreSQL support for PDO... yes
checking for pg_config... not found
configure: error: Cannot find libpq-fe.h. Please specify correct PostgreSQL installation path

Is there a way to disable psql support by default?

I'm on macOS Monterey, with no system PHP installed.

@WingLim
Copy link

WingLim commented Dec 6, 2021

You can use this command to disable it:

PHP_WITHOUT_PDO_PGSQL=yes asdf install php <version>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

2 participants