-
Notifications
You must be signed in to change notification settings - Fork 2k
missing ZIP extension causes double download in composer #60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
That sounds like it needs a FROM php:5.6
RUN apt-get update && apt-get install -y zlib1g-dev \
&& docker-php-ext-install zip |
Takes considerable time but since it saves downloading git too it seems a net win. Thanks! |
Drupal uses Composer a lot; especially Drupal 8, and there are a lot of modules, requiring composer, are being back ported to Drupal 7. Composer use PHP zip extension. Otherwise, see docker-library/php#60
Drupal uses Composer a lot; especially Drupal 8, and there are a lot of modules, requiring composer, are being back ported to Drupal 7. Composer use PHP zip extension. Otherwise, see docker-library/php#60
Drupal uses Composer a lot; especially Drupal 8, and there are a lot of modules, requiring composer, are being back ported to Drupal 7. Composer use PHP zip extension. Otherwise, see docker-library/php#60 Also add zip extension to Drupal 7.
@tianon for me |
@Aliance The php zip extension requires zlib wich is a data-compression library. That's why you have to install zlib1g-deb first. |
@tianon i don't get why your solution doesn't work for me. maybe because of php version? i have 7.1
|
@yuklia, I am unable to reproduce. Using php:7.1, I only get that error if I run |
For one whole want to find an alternative solution with zlib: use bitnami/php-fpm (or can learn from that docker file where zlib extension installed well). |
for php:7.3-apache, this is what I had to do:
|
For docker run --rm -it php:7.3 sh -c "apt-get update && apt-get install -y libzip-dev && docker-php-ext-install zip" |
That sounds like it needs a docker-php-ext-install zip (its working for me) |
for me |
I'm wary of php enought not to know wheter this is #8 but the ZIP extension seems missing.
I'm using composer and it fetches stuff like
Downloading: 100%
Failed to download phpunit/phpunit from dist: Could not decompress the archive, enable the PHP zip extension.
A php.ini file does not exist. You will have to create one.
Now trying to download from source
Cloning d24e9877331039582497052cc3c4d9f465b88210
Guessing from execution times it does download twice.
The text was updated successfully, but these errors were encountered: