krytor
V2EX  ›  编程

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

  •  
  •   krytor · Dec 18, 2015 · 3173 views
    This topic created in 3977 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
    mcfog
    Dec 18, 2015❤️1
    1
    mac 上我是这样编译成功的

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

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