V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
NIGHTBUG
V2EX  ›  PHP

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

  •  
  •   NIGHTBUG · 2016-05-09 17:22:42 +08:00 · 2737 次点击
    这是一个创建于 2923 天前的主题,其中的信息可能已经有所发展或是发生改变。
    编译时参数
    --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  
       2016-05-09 19:48:48 +08:00
    带参数是第二次编译么?编译前 make clean, 编译后 make install ,还有是不是忘了重启 php-fpm?(
    NIGHTBUG
        2
    NIGHTBUG  
    OP
       2016-05-09 20:46:20 +08:00 via iPhone
    @mcfog 必须重启过啊~没有效果,很诡异,系统是 Centosx64
    mcfog
        3
    mcfog  
       2016-05-10 10:24:37 +08:00   ❤️ 1
    @NIGHTBUG 试试看`php -i | less`看看 CLI 里面的 GD 带不带 freetype ,是不是 fpm 配置的问题,或者 fpm 的 php 和你编译的 php 不是一份之类的
    NIGHTBUG
        4
    NIGHTBUG  
    OP
       2016-05-10 10:50:01 +08:00
    @mcfog php-fpm -i
    FreeType Support => enabled
    FreeType Linkage => with freetype

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

    php 的安装过程很标准,就是源码编译安装,后启动 php-fpm , server 是 Nginx
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   5555 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 40ms · UTC 08:27 · PVG 16:27 · LAX 01:27 · JFK 04:27
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.