在面板安装的imap扩展,没报错,但是看日志说error: /usr/src/php/ext/imap does not exist 缺少 PHP 源码 ext/imap 目录实际上没安装成功,然后我又想去换源好像也不行。
应该如何办,谢谢
请附带以下信息
1Panel 版本:
操作系统:
关键截图:
#11 52.34 ---------- Install imap ----------
#11 52.35 fetch https://mirrors.aliyun.com/alpine/v3.21/main/x86_64/APKINDEX.tar.gz
#11 52.61 fetch https://mirrors.aliyun.com/alpine/v3.21/community/x86_64/APKINDEX.tar.gz
#11 53.26 (1/2) Installing c-client (2007f-r15)
#11 53.53 (2/2) Installing imap-dev (2007f-r15)
#11 53.71 OK: 308 MiB in 90 packages
#11 55.19 usage: /usr/local/bin/docker-php-ext-configure ext-name [configure flags]
#11 55.19 ie: /usr/local/bin/docker-php-ext-configure gd --with-jpeg-dir=/usr/local/something
#11 55.19
#11 55.19 Possible values for ext-name:
#11 55.22 bcmath bz2 calendar ctype curl dba dl_test dom enchant exif ffi fileinfo filter ftp gd gettext gmp hash iconv intl json ldap mbstring mysqli odbc opcache pcntl pdo pdo_dblib pdo_firebird pdo_mysql pdo_odbc pdo_pgsql pdo_sqlite pgsql phar posix random readline reflection session shmop simplexml snmp soap sockets sodium spl standard sysvmsg sysvsem sysvshm tidy tokenizer xml xmlreader xmlwriter xsl zend_test zip
#11 55.22
#11 55.22 Some of the above modules are already compiled into PHP; please check
#11 55.22 the output of “php -i” to see which modules are already loaded.
#11 55.23 error: /usr/src/php/ext/imap does not exist
#11 55.23
#11 55.23 usage: /usr/local/bin/docker-php-ext-install [-jN] [–ini-name file.ini] ext-name [ext-name …]
#11 55.23 ie: /usr/local/bin/docker-php-ext-install gd mysqli
#11 55.23 /usr/local/bin/docker-php-ext-install pdo pdo_mysql
#11 55.23 /usr/local/bin/docker-php-ext-install -j5 gd mbstring mysqli pdo pdo_mysql shmop
#11 55.23
#11 55.23 if custom ./configure arguments are necessary, see docker-php-ext-configure
#11 55.23
#11 55.23 Possible values for ext-name:
#11 55.27 bcmath bz2 calendar ctype curl dba dl_test dom enchant exif ffi fileinfo filter ftp gd gettext gmp hash iconv intl json ldap mbstring mysqli odbc opcache pcntl pdo pdo_dblib pdo_firebird pdo_mysql pdo_odbc pdo_pgsql pdo_sqlite pgsql phar posix random readline reflection session shmop simplexml snmp soap sockets sodium spl standard sysvmsg sysvsem sysvshm tidy tokenizer xml xmlreader xmlwriter xsl zend_test zip
#11 55.27
#11 55.27 Some of the above modules are already compiled into PHP; please check
#11 55.27 the output of “php -i” to see which modules are already loaded.
#11 DONE 55.8s
#12 [1panel-php 8/12] RUN apk --no-cache add tzdata && cp “/usr/share/zoneinfo/Asia/Shanghai” /etc/localtime && echo “Asia/Shanghai” > /etc/timezone
#12 0.266 fetch https://mirrors.aliyun.com/alpine/v3.21/main/x86_64/APKINDEX.tar.gz
#12 0.523 fetch https://mirrors.aliyun.com/alpine/v3.21/community/x86_64/APKINDEX.tar.gz
#12 1.170 (1/1) Installing tzdata (2025b-r0)
#12 1.259 OK: 308 MiB in 91 packages
#12 DONE 1.4s
#13 [1panel-php 9/12] RUN apk add gnu-libiconv libstdc++ --no-cache --repository alpine-edge-community安装包下载_开源镜像站-阿里云 --allow-untrusted
#13 0.184 fetch http://mirrors.aliyun.com/alpine/edge/community/x86_64/APKINDEX.tar.gz
#13 0.701 fetch https://mirrors.aliyun.com/alpine/v3.21/main/x86_64/APKINDEX.tar.gz
#13 0.970 fetch https://mirrors.aliyun.com/alpine/v3.21/community/x86_64/APKINDEX.tar.gz
#13 1.678 (1/1) Installing gnu-libiconv (1.17-r2)
#13 1.795 Executing busybox-1.37.0-r12.trigger
#13 1.808 OK: 308 MiB in 92 packages
#13 DONE 2.0s
#14 [1panel-php 10/12] RUN curl -o /usr/bin/composer https://mirrors.aliyun.com/composer/composer.phar && chmod +x /usr/bin/composer
#14 0.202 % Total % Received % Xferd Average Speed Time Time Time Current
#14 0.203 Dload Upload Total Spent Left Speed
#14 0.203
0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0
100 3051k 100 3051k 0 0 9017k 0 --:–:-- --:–:-- --:–:-- 9027k
#14 DONE 0.6s
#15 [1panel-php 11/12] RUN apk --no-cache add shadow && usermod -u 1000 www-data && groupmod -g 1000 www-data
#15 0.178 fetch https://mirrors.aliyun.com/alpine/v3.21/main/x86_64/APKINDEX.tar.gz
#15 0.412 fetch https://mirrors.aliyun.com/alpine/v3.21/community/x86_64/APKINDEX.tar.gz
#15 1.071 (1/6) Installing libmd (1.1.0-r0)
#15 1.101 (2/6) Installing libbsd (0.12.2-r0)
#15 1.130 (3/6) Installing skalibs-libs (2.14.3.0-r0)
#15 1.171 (4/6) Installing utmps-libs (0.1.2.3-r2)
#15 1.209 (5/6) Installing linux-pam (1.6.1-r1)
#15 1.264 (6/6) Installing shadow (4.16.0-r1)
#15 1.403 Executing busybox-1.37.0-r12.trigger
#15 1.412 OK: 311 MiB in 98 packages
#15 DONE 1.6s
#16 [1panel-php 12/12] WORKDIR /www
#16 DONE 0.0s
#17 [1panel-php] exporting to image
#17 exporting layers
#17 exporting layers 4.3s done
#17 writing image sha256:31651a7ef73a85e88b7cd0c41d16a7187c85a920eeec8e9d3785825b3279af65 done
#17 naming to docker.io/library/1panel-php:8.4.6 done
#17 DONE 4.3s