PHP FreeType支持在GD中不起作用

PHP FreeType支持在GD中不起作用,php,ubuntu,Php,Ubuntu,我正在尝试编译PHP5.2,因为我需要在新服务器上运行旧的应用程序。我正在使用此配置: ./configure --prefix=/opt --with-apxs2=/usr/bin/apxs2 --enable-soap --with-pear --with-pgsql --with-curl=/usr/bin --enable-bcmath --enable-ftp --with-mcrypt --with-mhash --with-pdo-mysql --with-pdo-pgsql --

我正在尝试编译PHP5.2,因为我需要在新服务器上运行旧的应用程序。我正在使用此配置:

./configure --prefix=/opt --with-apxs2=/usr/bin/apxs2 --enable-soap --with-pear --with-pgsql --with-curl=/usr/bin --enable-bcmath --enable-ftp --with-mcrypt --with-mhash --with-pdo-mysql --with-pdo-pgsql --with-mssql=/usr/local/freetds --with-ttf=/usr/lib --with-t1lib --with-xpm-dir=/usr/lib --with-freetype-dir=/usr/include/freetype2 --with-gd --with-gettext --enable-mbstring --with-mm
当我运行该配置时没有错误,但是,一些日志消息显示它看到了FreeType

checking for GD support... yes
checking for the location of libjpeg... no
checking for the location of libpng... no
checking for the location of libXpm... /usr/lib
checking for FreeType 1.x support... /usr/lib
checking for FreeType 2... /usr/include/freetype2
checking for T1lib support... yes
checking whether to enable truetype string function in GD... no
checking whether to enable JIS-mapped Japanese font support in GD... no
checking for fabsf... (cached) yes
checking for floorf... (cached) yes
If configure fails try --with-jpeg-dir=<DIR>
checking for png_write_image in -lpng... (cached) yes
checking for XpmFreeXpmImage in -lXpm... (cached) yes
checking for FT_New_Face in -lfreetype... (cached) yes
checking for FreeType 1 support... no - FreeType 2.x is to be used instead
checking for T1_StrError in -lt1... (cached) yes
此应用程序来自的旧服务器在phpinfo的GD部分中有以下内容:

GD Support  enabled
GD Version  bundled (2.0.34 compatible)
FreeType Support    enabled
FreeType Linkage    with freetype
FreeType Version    2.3.5
T1Lib Support   enabled
GIF Read Support    enabled
GIF Create Support  enabled
JPG Support enabled
PNG Support enabled
WBMP Support    enabled
XPM Support enabled
XBM Support enabled

新服务器是Ubuntu 13.04服务器,我已经安装了
libfreetype6
。FreeType没有显示为已启用状态,我做错了什么?

您是否尝试过执行
清除

FreeType是否存在于
/usr/include/freetype2
?目录可读吗?是的。然而,freetype.a和freetype.so在/usr/lib/i386 linux中。因此,我也尝试过使用freetype dir=/usr/lib/i386 linux
执行
,这会产生相同的结果。该目录也是可读的。您是否在每次执行之前执行
清除
。/configure?(对不起,我太迂腐了,我现在找不到比这更重要的东西了。)facepalm解决了所有问题。
GD Support  enabled
GD Version  bundled (2.0.34 compatible)
FreeType Support    enabled
FreeType Linkage    with freetype
FreeType Version    2.3.5
T1Lib Support   enabled
GIF Read Support    enabled
GIF Create Support  enabled
JPG Support enabled
PNG Support enabled
WBMP Support    enabled
XPM Support enabled
XBM Support enabled