安装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

怎么解决哟?谢谢大家了
...全文
53 4 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
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下学习算了。

21,893

社区成员

发帖
与我相关
我的任务
社区描述
从PHP安装配置,PHP入门,PHP基础到PHP应用
社区管理员
  • 基础编程社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧