安装php出现问题,急死人了

haibucuo 2004-04-07 11:09:42
我在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

怎么解决哟?谢谢大家了
...全文
10 点赞 收藏 4
写回复
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
feel8 2004-04-08
装最新的php版本看看,内置了优化后的gd2,不需要特意安装gd2
看./configure --help
回复
mistjin 2004-04-08
PHP重新编译一下试试!
回复
52juanjuan 2004-04-08
gd没有装好
回复
unixdotnet 2004-04-08
建议使用debian。安装了基本系统后就直接输入apt-get install apache php4 php4-gd2 php4-mysql mysql-server mysql-client,你不用烦恼。要不在win2k下学习算了。
回复
发动态
发帖子
基础编程
创建于2007-09-28

2.1w+

社区成员

从PHP安装配置,PHP入门,PHP基础到PHP应用
申请成为版主
社区公告
暂无公告