xwsn
新手上路

UID 73910
精华
0
积分 17
帖子 17
金钱 17 喜悦币
威望 0
人脉 0
阅读权限 10
注册 2006-5-24
状态 离线
|
gd 对FreeType 不支持?
如果你的php支持gd的话 可以在phpinfo 中看到 有FreeType Support 的字样。
而我的就没有。
最近要用JaGraph 作图。需要 FreeType支持。
我编译了好几遍 FreeType+gd+php+apache
结果还是不行。。
编译步骤如下:
1) Install FreeType (2.1.1)
./configure --prefix=/usr/include/freetype2
make
make install
2) Install GD (2.0.33)
./configure --prefix=/usr/include/gd-2.0.33 --with-freetype=/usr/include/freetype2
make
make install
3) Compile PHP (4.3.11)
./configure
--with-gd=/usr/include/gd-2.0.33
--with-ttf=/usr/include/freetype2
--with-freetype-dir=/usr/include/freetype2
--with-zlib-dir=/usr/lib
--with-png-dir=/usr/local
--with-jpeg-dir=/usr/local
--with-tiff-dir=/usr/local
--with-gd-native-ttf
--enable-bcmath --enable-shared --enable-static --enable-gd-imgstrttf
make
make install
4)Compile httpd 2.0.58
./configure --enable-module=so
以上编译都是成功的。但是在phpinfo中就是没有 FreeType Support 。。
是哪里的原因? 急盼解答!!
|
|