2013-05-17 54 views
2

我想編譯PHP 5.2,因爲我需要在新的服務器上運行較舊的應用程序。我正在使用此配置:PHP FreeType支持不工作GD

./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 

即使所有這一切說明,我仍然只得到

GD Support enabled 
GD Version bundled (2.0.34 compatible) 
GIF Read Support enabled 
GIF Create Support enabled 
PNG Support enabled 
WBMP Support enabled 
XBM Support enabled 

這個應用程序是來自舊服務器中的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沒有顯示爲啓用?

+0

freetype是否存在於'/ usr/include/freetype2'?目錄是否可讀? –

+0

它的確如此。 freetype.a和freetype.so位於/ usr/lib/i386-linux中。所以,我也嘗試過使用'--with-freetype-dir =/usr/lib/i386-linux'來產生相同的結果。 – tubaguy50035

+0

該目錄也是可讀的。 – tubaguy50035

回答