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

[Ubuntu 20 (wsl2)] Cannot find libpq-fe.h #133

Open
robertwt7 opened this issue Aug 6, 2022 · 4 comments
Open

[Ubuntu 20 (wsl2)] Cannot find libpq-fe.h #133

robertwt7 opened this issue Aug 6, 2022 · 4 comments

Comments

@robertwt7
Copy link

configure: error: Cannot find libpq-fe.h. Please specify correct PostgreSQL installation path

I'm still experiencing #99 on master. Shouldn't this be fixed by #102 already?

This command fixes it, however shouldn't we be able to run it without the var?

PHP_WITHOUT_PDO_PGSQL=yes asdf install php <version>
@nobleach
Copy link

Running into this as well. I don't plan on installing Postgres locally on my machine. (I'd prefer to use a Docker container). If I use this env var, won't this negate my ability to use PDO to connect to Postgres completely?

@DanielRios549
Copy link

@nobleach From what I understand yes, this is not the PotsgresSQL itself, it is the "plugin" PDO uses to connect to this type of database.

@99linesofcode
Copy link

If you want PHP to be compiled with PostgreQSL support, you need to install the libpq package so that it can. If you do not plan on using PostgreSQL and therefore do not need the postgres module, you need to pass that environment variable. For more information see: https://www.php.net/manual/en/book.pgsql.php

@uzuki-P
Copy link

uzuki-P commented Mar 29, 2024

after checking the install script, there's actually a PHP_WITHOUT_PDO_PGSQL env here. So you can run
PHP_WITHOUT_PDO_PGSQL=yes asdf install php latest. It work for me at least.

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

No branches or pull requests

5 participants