安装php出现问题,急死人了
我在linux9下安装了gd-2.0.22,然后装php-4.2.2
老是出现如下错误:
gd_ctx.c: In function `_php_image_output_ctx':
gd_ctx.c:70: structure has no member named `free'
gd_ctx.c:98: structure has no member named `free'
gd.c: In function `_php_image_type':
gd.c:1014: structure has no member named `free'
gd.c:1017: structure has no member named `free'
gd.c: In function `_php_image_create_from':
gd.c:1208: structure has no member named `free'
gd.c: In function `php_imagettftext_common':
gd.c:2800: warning: passing arg 2 of `virtual_filepath' from incompatible pointer type
make[3]: *** [gd.lo] Error 1
make[3]: Leaving directory `/home/php/php-4.2.2/ext/gd'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/php/php-4.2.2/ext/gd'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/php/php-4.2.2/ext'
make: *** [all-recursive] Error 1
怎么解决哟?谢谢大家了