gpt4 book ai didi

node.js - docker Alpine : autoreconf: failed to run aclocal: No such file or directory

转载 作者:行者123 更新时间:2023-12-02 19:16:44 27 4
gpt4 key购买 nike

我的项目有 docker alpine 镜像,我需要安装 gifsicle Node 包,但在安装它时我收到错误

Directory: /var/www/abboom-landing/node_modules/gifsicle
Output:
⚠ Response code 404 (Not Found)
⚠ gifsicle pre-build test failed
ℹ compiling from source
✖ Error: Command failed: /bin/sh -c autoreconf -ivf
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --output=aclocal.m4t
Can't exec "aclocal": No such file or directory at /usr/share/autoconf/Autom4te/FileUtils.pm line 326.
autoreconf: failed to run aclocal: No such file or directory
我发现我需要添加 autoconflibtool打包到我的 Dockerfile,我做了,但仍然有同样的错误,我找不到任何有值(value)的解决方案。
这是我的 docker 文件:
FROM php:7.3-fpm-alpine

ENV BUILD_DEPS autoconf file gcc libc-dev make g++ pkgconf re2c git

RUN apk add --update --no-cache --virtual .build-deps $BUILD_DEPS
RUN apk add --no-cache --virtual .php-build-deps \
libsodium \
freetype-dev \
libmcrypt-dev \
postgresql-dev \
libxml2-dev \
libzip-dev \
libcurl \
libpng-dev \
autoconf \
libtool \
nasm \
zlib-dev cyrus-sasl-dev libmemcached-dev

RUN NPROC=$(grep -c ^processor /proc/cpuinfo 2>/dev/null || 1)
## Installable modules
RUN docker-php-ext-install iconv bcmath pdo_mysql opcache pgsql pdo_pgsql soap pcntl exif zip gd calendar dom json
## just good to have installed
RUN apk add --no-cache ca-certificates wget

RUN cd ~ \
&& curl -sS https://getcomposer.org/installer | php \
&& mv composer.phar /usr/local/bin/composer


## Install dependencies like editor xdebug etc.
RUN apk update && apk add --no-cache vim g++ make zlib-dev \
$BUILD_DEPS \
&& pecl install xdebug && docker-php-ext-enable xdebug \
&& rm -rf /var/cache/apk/*

RUN pecl install mongodb \
&& docker-php-ext-enable mongodb

RUN pecl install redis \
&& docker-php-ext-enable redis

RUN apk --update add openssh-client

RUN apk add --update nodejs yarn

## configure xdebug
RUN printf "xdebug.cli_color=1\nxdebug.remote_connect_back=1\nxdebug.remote_autostart=1\nxdebug.remote_enable=1\nxdebug.ide_key=PHPSTORM" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini

ADD php.pool.conf /usr/local/etc
ADD php.ini /usr/local/etc/php/


WORKDIR /var/www/

#EXPOSE 22

CMD ["php-fpm", "--fpm-config", "/usr/local/etc/php-fpm.conf"]

最佳答案

不见了aclocal .它是 automake 的一部分工具集。
添加 automake到依赖项安装应该可以解决这个问题。

关于node.js - docker Alpine : autoreconf: failed to run aclocal: No such file or directory,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63112615/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com