- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我的项目有 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
我发现我需要添加
autoconf
和
libtool
打包到我的 Dockerfile,我做了,但仍然有同样的错误,我找不到任何有值(value)的解决方案。
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/
在使用自动工具配置源文件的上下文中,aclocal 脚本和 aclocal.m4 文件有何意义?据我所知,aclocal 会扫描宏文件以查找稍后由 automake 使用的宏。我不太了解这个过程,但似
在执行 autoreconf -i 时返回以下错误 /usr/local/bin/aclocal: 14: /usr/local/bin/aclocal: Syntax error: word une
关闭。这个问题不符合Stack Overflow guidelines .它目前不接受答案。 这个问题似乎不是关于 a specific programming problem, a softwar
我正在尝试编译 libbsd来自 Ubuntu 13.04 的源代码。我正在使用工具链进行交叉编译,但 automake 在本地机器上。我有 aclocal-1.13在 PATH 和所有内容中,但我仍
我正在尝试在 Cygwin 上测试我们的 Autotools 东西。当我打开提示时: $ autoreconf --install --force Can't exec "aclocal": No s
我正在开发自定义 Linux 发行版,问题始于 this question 。我已经克服了这个问题,但是,当我运行 bitbake core-image-minimal 时,我收到以下错误: Load
我正在尝试执行 ./autogen.sh 来自 的 cppunit 文件夹中的脚本 http://www.freedesktop.org/wiki/Software/cppunit 但是在 mingw
我是使用自动工具的新手,并且有一个我不明白的非常严重的问题。我想在一台旧机器上测试我的新构建系统,即 Linux 内核 2.4.18-64GB-SMP。我在内核为 3.1.9-2-ARCH 的系统上构
我正在分发一个 tarball,其中包含由 autoconf 版本 2.69 生成的安装脚本。在许多不同的机器上都能正常工作。现在,一位在新的 Arch Linux 系统上工作的用户报告 config
在我的 kali-linux 机器上安装 Code::Blocks 期间在我的程序目录上执行 ./configure 命令后,一切正常,直到我尝试制作我的程序。这是我的错误信息: WARNING: '
我在/Xcode3.2 中安装了 Xcode 3.2,但没有在/Developer 中安装任何东西。当我想做开发时,我启动一个shell如下 alias sysroot='PATH=${PATH}:$
我的项目有 docker alpine 镜像,我需要安装 gifsicle Node 包,但在安装它时我收到错误 Directory: /var/www/abboom-landing/node_mod
我有一台标准的核心 i5 笔记本电脑,我正在尝试制作 LFS(Linux From Scratch),它一切正常(经过几次重试),直到我尝试制作 Coreutils-8.30 时,我做了 Make 我
我有一个鱿鱼源代码目录,它适用于 ./configure && make clean 如下 cd /opt/squid-3.5.4 ./configure && make clean 现在,当我创建目
我正在尝试编译和安装 phpredis 存储库的 php7 分支,但出现以下错误: /bin/sh /root/phpredis/libtool --mode=compile cc
我想构建 Linphone android 项目。我已经下载了项目,但无法按照 README 中给出的说明进行操作。不知道如何在 Windows 机器上安装 autotools。如果有人有任何想法,请
我试图在 github 上运行一个 c++ 程序。 (可在以下链接 https://github.com/mortehu/text-classifier 获得) 我有一个 mac,并试图在终端中运行它
在Windows上Cygwin制作一些程序给出 libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'build-aux'. libto
我是一名优秀的程序员,十分优秀!