Cockpit: docker-init command fails with error checking for libzip... not found

Created on 17 Dec 2018  路  4Comments  路  Source: agentejo/cockpit

I'm getting this error from docker-init on windows 10 with node 10.11.0 and docker 2.0.0

checking for libzip... not found
configure: error: Please reinstall the libzip distribution

This was fixed by adding this line to the Dockerfile:
libzip-dev \

Workaround Dockerfile command:

RUN apt-get update \
    && apt-get install -y \
    wget zip unzip \
    libfreetype6-dev \
    libjpeg62-turbo-dev \
    libpng-dev \
    sqlite3 libsqlite3-dev \
    libssl-dev \
    libzip-dev \
    && pecl install mongodb \
    && pecl install redis \
    && docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
    && docker-php-ext-install -j$(nproc) iconv gd pdo zip opcache pdo_sqlite \
    && a2enmod rewrite expires

Most helpful comment

@aheinze This doesn't seem to be updated in either next or master.
Also, confirming that adding libzip-dev to Dockerfile solves the issue.

All 4 comments

should be fixed now. thanks for reporting!

@aheinze This doesn't seem to be updated in either next or master.
Also, confirming that adding libzip-dev to Dockerfile solves the issue.

Download libzip-dev beforedocker-php-ext-install zip

apt install libzip-dev
docker-php-ext-install zip

apt install libzip-dev

E: Unable to locate package libzip-dev

Was this page helpful?
0 / 5 - 0 ratings

Related issues

TechnicallyJoe picture TechnicallyJoe  路  4Comments

gryphonmyers picture gryphonmyers  路  6Comments

AienTech picture AienTech  路  3Comments

dragosdydy picture dragosdydy  路  3Comments

victormoretti picture victormoretti  路  5Comments