mlocati / docker-php-extension-installer

Easily install PHP extensions in Docker containers
MIT License
4.33k stars 388 forks source link

Missing http gcrypt extension #935

Closed CanvasCompanyHylke closed 4 months ago

CanvasCompanyHylke commented 4 months ago

Version of install-php-extensions

2.2.17

Error description

The http extension fails to install. It tries to include gcrypt.h during compiling, which isn't present.

30.54 /tmp/pear/temp/pecl_http/src/php_http_curl.c:28:33: fatal error: gcrypt.h: No such file or directory
30.54    28 | #                       include <gcrypt.h>
30.54       |                                 ^~~~~~~~~~
30.54 compilation terminated.

Docker image

php:8.3.8-zts

Minimal Dockerfile

FROM php:8.3.8-zts

# Copy PHP extension install script
COPY --link --from=mlocati/php-extension-installer /usr/bin/install-php-extensions /usr/local/bin/

# Install the needed PHP extensions
RUN set -eux; install-php-extensions http;
mlocati commented 4 months ago

Thanks for the report. This issue only occurs in docker images containing the ZTS version of PHP.