NIGHTBUG
V2EX  ›  PHP

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

  •  
  •   NIGHTBUG · May 9, 2016 · 3388 views
    This topic created in 3659 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
        1
    mcfog  
       May 9, 2016
    带参数是第二次编译么?编译前 make clean, 编译后 make install ,还有是不是忘了重启 php-fpm?(
    NIGHTBUG
        2
    NIGHTBUG  
    OP
       May 9, 2016 via iPhone
    @mcfog 必须重启过啊~没有效果,很诡异,系统是 Centosx64
    mcfog
        3
    mcfog  
       May 10, 2016   ❤️ 1
    @NIGHTBUG 试试看`php -i | less`看看 CLI 里面的 GD 带不带 freetype ,是不是 fpm 配置的问题,或者 fpm 的 php 和你编译的 php 不是一份之类的
    NIGHTBUG
        4
    NIGHTBUG  
    OP
       May 10, 2016
    @mcfog php-fpm -i
    FreeType Support => enabled
    FreeType Linkage => with freetype

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

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