solaris 10 编译安装PHP5时提示找不到freetype.h

在solaris 10 编译安装PHP5时提示找不到freetype.h,我的FREETYPE 是通过pkgutil 安装的.我的编译命令是
./configure --prefix=/usr/local/php5 --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/local/mysql5 --with-mysqli=/usr/local/mysql5/bin/mysql_config --with-libxml-dir=/opt/csw/bin --with-config-file-path=/etc/apache2 --with-gd=/opt/csw/bin --with-png-dir=/opt/csw/bin --with-freetype-dir=/opt/csw/bin --with-jpeg-dir=/opt/csw/bin --with-xpm-dir=/opt/csw/bin --with-zlib-dir=/opt/csw/bin --enable-gd-native-ttf --enable-gd-jis-conv --with-t1lib=/opt/csw/bin --enable-mbstring

错误提示为
checking whether to enable DBA interface... no
checking whether to enable DOM support... yes
checking for xml2-config path... (cached) /usr/bin/xml2-config
checking whether libxml build works... (cached) yes
checking for ENCHANT support... no
checking whether to enable EXIF (metadata from images) support... no
checking for fileinfo support... yes
checking for utimes... (cached) yes
checking for strndup... (cached) no
checking whether to enable input filter support... yes
checking pcre install prefix... no
checking whether to enable FTP support... no
checking OpenSSL dir for FTP... no
checking for GD support... yes
checking for the location of libjpeg... /opt/csw/bin
checking for the location of libpng... /opt/csw/bin
checking for the location of libXpm... /opt/csw/bin
checking for FreeType 2... /opt/csw/bin
checking for T1lib support... /opt/csw/bin
checking whether to enable truetype string function in GD... yes
checking whether to enable JIS-mapped Japanese font support in GD... yes
checking for jpeg_read_header in -ljpeg... yes
checking for png_write_image in -lpng... yes
checking for XpmFreeXpmImage in -lXpm... yes
configure: error: freetype.h not found.
我的freetype.h在

/opt/csw/include/freetype1/freetype/freetype.h
/opt/csw/include/freetype2/freetype/freetype.h
但是为什么是在编译的时候出现找不到呢。麻烦朋友帮我看一下到底问题出在那里。先谢谢大家了。

作者: nangzi   发布时间: 2011-03-27

顶一下

作者: nangzi   发布时间: 2011-03-27