庆宇笔记 - PHP的GD库freetype编译安装问题及解决办法 的评论 https://www.qingyu.me/archives/109.html 首先说明:我的环境是Mac OS X,大家知道mac是基于unix,所以从源代码编译安装三步曲:./configure 、 make 、 make install 是都知晓的。编译安装三步曲,是... 1 https://www.qingyu.me/archives/109.html#comment-313 2025-12-19T09:47:22+08:00 555 1 https://www.qingyu.me/archives/109.html#comment-296 2025-12-19T09:22:25+08:00 555 1 https://www.qingyu.me/archives/109.html#comment-275 2025-12-19T08:16:20+08:00 1 Jacky宇 https://www.qingyu.me/archives/109.html#comment-68 2016-01-25T15:13:34+08:00 记:更新到OS X EI Captain重新安装php的配置项 ./configure --prefix=/usr/local/php --enable-mbstring --with-apxs2=/usr/sbin/apxs --with-mysql --with-pdo-mysql --enable-zip --with-mysqli --with-curl=/usr/local/opt/curl --with-gd --with-png-dir=/usr/local --with-jpeg-dir=/usr/local --with-freetype-dir=/usr/local --with-t1lib=/usr/local --with-zlib=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr --with-iconv=/usr/local/opt/libiconv说明: 1. zlib是OS X默认安装好的,其路径是locate命令找出的 2. libiconv 是 brew install homebrew/dupes/libiconv 命令新安装的