krytor
V2EX  ›  编程

[php]现在 php 是不是不用 gd 扩展了

  •  
  •   krytor · Dec 18, 2015 · 2878 views
    This topic created in 3826 days ago, the information mentioned may be changed or developed.

    centos7,编译 php7
    编译 gd 成功了,但是 freetype2 死活不支持。
    改用 imagick 了,但是 3.3.0 编译不成功,使用 3.4.0RC3 编译的时候一堆警告,但是成功了。

    4 replies    2015-12-18 14:51:41 +08:00
    mcfog
        1
    mcfog  
       Dec 18, 2015   ❤️ 1
    mac 上我是这样编译成功的

    ```
    phpbrew ext install gd -- --with-freetype-dir=(brew --prefix freetype)
    ```

    phpbrew 真乃神器也
    Pastsong
        2
    Pastsong  
       Dec 18, 2015
    @mcfog 感觉好厉害,先感谢了!
    krytor
        3
    krytor  
    OP
       Dec 18, 2015
    @mcfog 你总不能把 mac 弄成服务器吧 %>_<%
    julyclyde
        4
    julyclyde  
       Dec 18, 2015
    --with-gd 是 php 自带的 gd
    --with-gd=路径 用外部 libgd 来做
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1035 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 19:09 · PVG 03:09 · LAX 12:09 · JFK 15:09
    ♥ Do have faith in what you're doing.