gd扩展报错freetype-confignotfound

PHP / 470人浏览 / 0人评论

docker中php扩展freetype安装

RUN apt-get update && apt-get install -y --no-install-recommends
                COPY freetype.tar.gz /tmp/freetype.tar.gz
                RUN tar zxvf /tmp/freetype.tar.gz \
                && cd freetype-* \
                && ./configure --prefix=/usr/include \
                && make && make install \
                && rm -rf ../freetype-* \
                && apt-get install -y \
                libfreetype6-dev \
                libjpeg62-turbo-dev \
                libpng-dev \
                libssl-dev \
                curl \
                postgis \
                tar \
                git  \
                zip unzip \
            && docker-php-ext-install -j$(nproc) iconv \
            && docker-php-ext-configure gd --with-freetype=/usr/include/ --with-jpeg=/usr/include/ \
            && docker-php-ext-install -j$(nproc) gd

转载注明:

扩展查找

0 条评论

还没有人发表评论

发表评论 取消回复

记住我的信息,方便下次评论
有人回复时邮件通知我