php gd 不支持 freetype 于是:
下面只是配置make make install 就不说了
估计用系统默认的gd和freetype也可以 我没试
qq:~/src/freetype-2.3.5 #./configure --prefix=/usr/local/freetype2
qq:~/src/gd-2.0.35 #./configure --prefix=/usr/local/gd2.0.35 --with-png --with-jpeg --with-freetype=/usr/local/freetype2/
qq:~/src/php-5.2.3 # './configure' '--prefix=/usr/local/php' '--with-mysql=/usr/local/mysql' '--with-mysql-sock=/tmp/mysql.sock' '--with-gd=/usr/local/gd2.0.35' '--with-zlib-dir' '--with-apxs2=/usr/local/apache2/bin/apxs' '--with-jpeg-dir' '--with-png-dir' '--with-freetype-dir=/usr/local/freetype2' '--enable-gd-native-ttf' '--enable-gd-jis-conv' '--enable-mbstring' '--with-pdo-mysql=/usr/local/mysql'
搞定
gd
GD Support enabled
GD Version 2.0 or higher
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.3.5
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
阅读(4828) | 评论(0) | 转发(0) |