I'm trying to build an application that is using diesel as the ORM library.
The application will be build as a docker image.
When building the image I am installing postgres:
RUN apt-get install postgresql -y
I also tried adding libpq in hope to resolve the linking issues.
Still, when running my container I'm getting:
Error loading shared library libpq.so.5: No such file or directory (needed by /usr/local/bin/rustbinary)
Error relocating /usr/local/bin/rustbinary: PQresultStatus: symbol not found
Error relocating /usr/local/bin/rustbinary: PQresultErrorMessage: symbol not found
Error relocating /usr/local/bin/rustbinary: PQprepare: symbol not found
Error relocating /usr/local/bin/rustbinary: PQnfields: symbol not found
Error relocating /usr/local/bin/rustbinary: PQgetvalue: symbol not found
Error relocating /usr/local/bin/rustbinary: PQcmdTuples: symbol not found
Error relocating /usr/local/bin/rustbinary: PQclear: symbol not found
Error relocating /usr/local/bin/rustbinary: PQgetlength: symbol not found
Error relocating /usr/local/bin/rustbinary: PQconnectdb: symbol not found
Error relocating /usr/local/bin/rustbinary: PQexecPrepared: symbol not found
Error relocating /usr/local/bin/rustbinary: PQfinish: symbol not found
Error relocating /usr/local/bin/rustbinary: PQerrorMessage: symbol not found
Error relocating /usr/local/bin/rustbinary: PQftype: symbol not found
Error relocating /usr/local/bin/rustbinary: PQstatus: symbol not found
Error relocating /usr/local/bin/rustbinary: PQsetNoticeProcessor: symbol not found
Error relocating /usr/local/bin/rustbinary: PQntuples: symbol not found
Error relocating /usr/local/bin/rustbinary: PQfname: symbol not found
Error relocating /usr/local/bin/rustbinary: PQresultErrorField: symbol not found
Error relocating /usr/local/bin/rustbinary: PQgetisnull: symbol not found
Error relocating /usr/local/bin/rustbinary: PQexec: symbol not found
I also tried installing
RUN apt-get install libpq-dev
which didn't resolve the problem as well.
Can anybody help me to find a solution?