【问题标题】:I can not install php with freetype support [Ubuntu]我无法安装支持 freetype 的 php [Ubuntu]
【发布时间】:2021-02-04 22:49:43
【问题描述】:

我正在尝试再次从源代码安装 php,到目前为止我已经做了好几次了。我真的需要 freetype 支持,当我尝试编译 php 时,一切都很好,除了 freetype。

PHP 版本:8.0.1

错误:配置:警告:无法识别的选项:--with-freetype-dir

终端命令:

sudo ./configure --prefix=/usr/local/php --with-mysqli=mysqlnd  --with-apxs2=/usr/local/apache2/bin/apxs --with-jpeg --with-zlib --with-kerberos --enable-gd   --with-freetype-dir=/usr/local/freetype2/ --with-freetype 

【问题讨论】:

    标签: php ubuntu freetype


    【解决方案1】:

    来自the manual

    要启用对 FreeType 2 的支持,请添加 --with-freetype-dir=DIR。 截至 PHP 7.4.0 使用 --with-freetype 代替,它依赖于 pkg-config

    【讨论】:

    • 感谢您的回答。我应该更仔细地阅读手册。抱歉耽误您的时间。
    猜你喜欢
    • 2017-01-13
    • 2019-04-20
    • 2016-07-26
    • 1970-01-01
    • 2019-02-27
    • 2019-01-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多