NIGHTBUG
V2EX  ›  PHP

请问如何开启 Freetype?编译时已经启用 gd 和 Freetype

  •  
  •   NIGHTBUG · May 9, 2016 · 3837 views
    This topic created in 3853 days ago, the information mentioned may be changed or developed.
    编译时参数
    --with-gd --with-jpeg-dir --with-png-dir=/usr/include/libpng12 --with-freetype-dir=/usr/local/freetype

    checking for GD support... yes
    checking for the location of libvpx... no
    checking for the location of libjpeg... yes
    checking for the location of libpng... /usr/include/libpng12
    checking for the location of libXpm... no
    checking for FreeType 2... /usr/local/freetype
    (其他省略)


    phpinfo 输出时 GD 一栏中不出现 Freetype 的选项,求解如何正确配置?
    php 版本 5.6.X
    mcfog
    mcfog
    May 9, 2016
    1
    带参数是第二次编译么?编译前 make clean, 编译后 make install ,还有是不是忘了重启 php-fpm?(
    NIGHTBUG
    NIGHTBUG
    OP
    May 9, 2016 via iPhone
    2
    @mcfog 必须重启过啊~没有效果,很诡异,系统是 Centosx64
    mcfog
    mcfog
    May 10, 2016❤️1
    3
    @NIGHTBUG 试试看`php -i | less`看看 CLI 里面的 GD 带不带 freetype ,是不是 fpm 配置的问题,或者 fpm 的 php 和你编译的 php 不是一份之类的
    NIGHTBUG
    NIGHTBUG
    OP
    May 10, 2016
    4
    @mcfog php-fpm -i
    FreeType Support => enabled
    FreeType Linkage => with freetype

    原来一直是支持的
    可是 phpinfo 就是不显示,相应的函数也没法调用。

    php 的安装过程很标准,就是源码编译安装,后启动 php-fpm , server 是 Nginx
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2522 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 00:35 · PVG 08:35 · LAX 16:35 · JFK 19:35
    ♥ Do have faith in what you're doing.