solaris 10 下安装PHP的问题
是这样的,我在SOLARIS 10下安装php+gd库.我的.编译命令是;
./configure --prefix=/usr/local/php5 --with-apxs2=/usr/apache2/bin/apxs --with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --with-libxml-dir=/opt/csw/bin --with-config-file-path=/etc/apache2 --with-gd=/opt/csw/bin --with-jpeg-dir=/opt/csw/bin --with-png-dir=/opt/csw/bin --with-zlib-dir=/opt/csw/bin --with-xpm-dir=/opt/csw/bin --with-ttf=/opt/csw/bin --with-freetype-dir=/opt/csw --enable-gd-native-ttf --enable-gd-jis-conv --enable-mbstring
编译的时候都很顺利的通过了.但是到make 的时候出现如下错误,麻烦名位版主,以及各位朋友帮忙看一下到底出了什么问题如何解决.
In file included from /export/home/npic/soft/php-5.2.6/ext/gd/gd.c:107:
/export/home/npic/soft/php-5.2.6/ext/gd/gd_ctx.c: In function `_php_image_output_ctx':
/export/home/npic/soft/php-5.2.6/ext/gd/gd_ctx.c:110: error: structure has no member named `free'
/export/home/npic/soft/php-5.2.6/ext/gd/gd_ctx.c:153: error: structure has no member named `free'
/export/home/npic/soft/php-5.2.6/ext/gd/gd.c: In function `_php_image_type':
/export/home/npic/soft/php-5.2.6/ext/gd/gd.c:2427: error: structure has no member named `free'
/export/home/npic/soft/php-5.2.6/ext/gd/gd.c:2434: error: structure has no member named `free'
/export/home/npic/soft/php-5.2.6/ext/gd/gd.c: In function `_php_image_create_from_string':
/export/home/npic/soft/php-5.2.6/ext/gd/gd.c:2465: error: structure has no member named `free'
/export/home/npic/soft/php-5.2.6/ext/gd/gd.c:2473: error: structure has no member named `free'
/export/home/npic/soft/php-5.2.6/ext/gd/gd.c: In function `_php_image_create_from':
/export/home/npic/soft/php-5.2.6/ext/gd/gd.c:2640: error: structure has no member named `free'
*** Error code 1
make: Fatal error: Command failed for target `ext/gd/gd.lo'