Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

1.6K
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda