Closed meysampg closed 2 years ago
Update: Removing minor version =$PG_MINOR
from the docker file can solve the problem.
$ gd
Δ Dockerfile
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
────────────────────────────────────────────────────────────────────────┐
• 49: RUN echo "===> Adding prerequisites..." && \ │
────────────────────────────────────────────────────────────────────────┘
│ 49 │ ca-certificates \ │ 49 │ ca-certificates \
│ 50 │ build-essential wget unzip \ │ 50 │ build-essential wget unzip \
│ 51 │ libboost-all-dev \ │ 51 │ libboost-all-dev \
│ 52 │ postgresql-server-dev-$PG_MAJOR=$PG_MINOR \ │ 52 │ postgresql-server-dev-$PG_MAJOR \
│ 53 │ libpq-dev=$PG_MINOR && \ │ 53 │ libpq-dev && \
│ 54 │ \ │ 54 │ \
│ 55 │ \ │ 55 │ \
│ 56 │ echo "===> Building datasketches..." && \ │ 56 │ echo "===> Building datasketches..." && \
Your proposed fix seems to work. I am not sure whether this way of setting up versions is adequate. Perhaps it would be better to run "pg_config --version" instead of parsing the output from "apt list".
I tried to run the default build command for dockerfile and got this error:
Based on the log, I searched for
libpq-dev
on Debian11 (bullseye based on the docker build log) and found that the present version for this library (and probably forpostgresql-server-dev-14
) is 13, although the latest version of the base image is 14.So I changed the command to use version 13 of PG and got this error :face_with_head_bandage:
Is there any missing part in the building process?
Ps. My operating system information: