mac php gd(mac osx 10.9.4)

本文详细介绍了如何在计算机上安装freetype库和配置PHP GD扩展以支持freetype字体,包括下载、解压、配置和编译等步骤。

需要的类库在这里下载:http://www.apple.com/opensource/

编译gd扩展,支持freetype

1、安装freetype

下载freetype

http://download.savannah.gnu.org/releases/freetype/freetype-2.4.4.tar.bz2

tar jxvf freetype-2.4.4.tar.bz2
cd freetype-2.4.4
./configure --prefix=/usr/local/freetype

2、安装php gd扩展

cd /usr/local/src/php-5.4.26/ext/gd
/usr/local/php/bin/phpize
./configure --with-php-config=/usr/local/php/bin/php-config --with-freetype-dir=/usr/local/freetype


转载于:https://my.oschina.net/phper1234/blog/287315

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值