-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Can't install pdo_psql with docker-php-ext-install #221
Comments
Could this issue be related with the C libraries on Alpine? I have notice you are using |
Ok! fix my issue! :) It's kind of related with this https://bugs.alpinelinux.org/issues/3642 and this https://bugs.alpinelinux.org/issues/4109 And what I did to fix it was install first
And that works! :) the links suggest that we should have a small package to satisfy that dependency and be able to install the |
The same issue but on
The solution as above is:
|
@Aliance This also fixes the issue for php:apache 👍 |
set -ex \ && apk --no-cache add \ postgresql-dev docker-library/php#221
https://hub.docker.com/_/php/ docker-library/php#221 https://stackoverflow.com/a/39501539 docker-compose -f docker-compose.yml up --build -d queue_daemon docker logs basecamp-costlocker-queue -f
I am facing the same issue, but when I follow zot24 advice... the pdo is installed and seems to work BUT
Any suggestions |
Basically when I add postgresql-dev to my current installation pf postgresql (10.1) then I no longer can use psql command... drives me nuts |
I now solved it like this:
|
I got stuck on the same problem and your comments did help me to get it running, but you do not need to install the complete postgres package, postgres-libs is sufficient (pdo is already installed, but I needed to install the pgsql extension):
|
apt-get install libpq-dev |
Thanks @acodercat ,
|
You probably need to run "apt-get update" first. 😉
|
Thank you so much, mate. |
Without lines 6-8, I get an error `configure: error: Cannot find libpq-fe.h. Please specify correct PostgreSQL installation path` Applied fix suggested in docker-library/php#221 (comment) Re: `--no-cache option` in `apk` command, see https://stackoverflow.com/questions/49118579/ alpine-dockerfile-advantages-of-no-cache-vs-rm-var-cache-apk
Without lines 6-8, I get an error `configure: error: Cannot find libpq-fe.h. Please specify correct PostgreSQL installation path` Applied fix suggested in docker-library/php#221 (comment) Re: `--no-cache option` in `apk` command, see https://stackoverflow.com/questions/49118579/ alpine-dockerfile-advantages-of-no-cache-vs-rm-var-cache-apk
If somebody stumbles upon this and you're using one of the debian based images:
Note: you must leave |
My addition of pdo_pgsql for urbit/lumen-php-fpm:
|
This reduces the image size in my tests from 426 MB to 110 MB the steps are taken from docker-library/php#221 (comment)
This reduces the image size in my tests from 426 MB to 110 MB the steps are taken from docker-library/php#221 (comment)
This reduces the image size in my tests from 426 MB to 110 MB the steps are taken from docker-library/php#221 (comment)
|
I was trying to install
pdo_psql
onfpm-alpine
flavour like:I was getting first the following error:
So I decide to install
libpq
:Same error after that and then I try installing
postgresql
like:And then getting different error:
And I'm get stuck in this step not sure what could be wrong but I can't install
pdo_pgsql
btw my infrastructure it's have one container per thing, so I have a container for
nginx
and a container forphp-fpm
and another container withpostgres
so my goal it's have everything split between containersThe text was updated successfully, but these errors were encountered: