Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

1.6K
Views
How to install wkhtmltopdf on Docker php-fpm Alpine Linux?

I installed Wkhtmltopdf on Alpine Docker with the following command:

apk add --no-cache wkhtmltopdf

However when I try to run wkhtmltopdf I get:

/usr/bin/wkhtmltopdf  "test.html" "test.pdf"
Cannot mix incompatible Qt library (version 0x50c03) with this library (version 0x50c00)
Aborted (core dumped)

How can I fix that?

EDIT:

Seems like the issue is that some other package installs not compatable qt version. Here's my Dockerfile:

RUN apk --no-cache update \
    && apk --no-cache upgrade \
    && apk add --no-cache \
            mysql-client \
            php7-mysqli \
            php7-pdo \
            freetype \
            libpng \
            freetype-dev \
            libpng-dev \
            jpeg-dev \
            libjpeg \
            libjpeg-turbo-dev \
            wget \
            zlib-dev \
            ttf-freefont \
            fontconfig \
            xvfb \
            libxrender-dev \
            gettext \
            gettext-dev \
            libxml2-dev \
            gnu-libiconv-dev \
            autoconf \
            g++ \
            git \
            bash \
            wkhtmltopdf
over 4 years ago · Santiago Trujillo
1 answers
Answer question

1

I have a same problem, i found that problem is the host operative system kernel version (for example, into machines with CentosOS). If this is your case, the better options is update host OS or manually update the kernel versión.

Spanish (Native): He tenido el mismo error en contenedores y está asociado al Kernel de Linux del anfitrión de Docker (Por ejemplo, en máquinas con instalaciones de CentosOS). Si es tu caso, lo mejor es migrar a otro SO para el anfitrión o pensar en una actualización del kernel (tarea bastante más compleja y sin garantías de fallo).

over 4 years ago · Jose Wisner Urrego Portilla Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!