首先,确保你的 Docker 镜像包含了必要的构建工具和依赖项。docker-php-ext-install 需要这些工具来编译和安装 PHP 扩展。以下是一些可能的解决步骤: 确保基础镜像支持 PHP 扩展安装: 确保你使用的 Docker 镜像支持 PHP 扩展的安装。例如,使用 php:cli 或php:fpm 镜像而不是 php:apach
cd "$ext" [ -e Makefile ] || docker-php-ext-configure "$ext" make -j"$j" make -j"$j" install find modules \ -maxdepth 1 \ -name '*.so' \ -exec basename '{}' ';' \ | xargs -r docker-php-ext-enable make -j"$j" clean cd "$popDir" done if [ ...
ERROR: Service 'web' failed to build: The command '/bin/sh -c apt-get update && apt-get install -y libfreetype6-dev libjpeg62-turbo-dev libmcrypt-dev libpng-dev && docker-php-ext-install -j$(nproc) iconv mcrypt gd mbstring zip' returned a non-zero code: 1 我的文件: FROM php:...
(1)docker-php-ext-install可以安装有限的扩展,可以通过docker-php-ext-install --help查看available的扩展。目前可供docker-php-ext-install安装的扩展有: bcmath bz2 calendar ctype curl dba dom enchant exif fileinfo filter ftp gd gettext gmp hash iconv imap interbase intl json ldap mbstring mysqli oci8...
ERROR: Service 'phlaconapp' failed to build: The command '/bin/sh -c docker-php-ext-install mysqli mysqlnd pdo pdo_mysql zip' returned a non-zero code: 1 这是我的docker-compose.yml: phlaconapp: hostname: phaclonapp dockerfile: Dockerfile ...
Make "strip" in "docker-php-ext-install" conditional on "ZEND_DEBUG_B… af4cd1a· Mar 25, 2022 HistoryHistory Breadcrumbs php / docker-php-ext-installTop File metadata and controls Code Blame executable file· 143 lines (122 loc) · 2.89 KB Raw #!/bin/sh set -e # prefer user sup...
Rerunning the docker-php-ext-install intl then fails again with the following: Checking whether g++ accepts -g... no checking how to run the C++ preprocessor... /lib/cpp configure: error: in `/usr/src/php/ext/intl': configure: error: C++ preprocessor "/lib/cpp" fails sanity check ...
那你就会问,我怎么知道他的某个功能的实现方法是怎么命名的呢,这个时候php接口类就起到作用了,当...
PHP -ext-configure、docker-php-ext-install和docker-php-ext-enable这样的脚本可以更轻松地安装PHP扩展...
docker-php-ext-install -j$(nproc) gdEOFSending build context to Docker daemon 2.048kBStep 1/4 : FROM php:7.4-fpm-alpine7.4-fpm-alpine: Pulling from library/php59bf1c3509f3: Already exists7c7da25b2876: Already exists2bc599114627: Already exists927a0b37a45a: Already existsd47c8877a66a: ...