LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1350|回复: 1

make php出错

[复制链接]
发表于 2008-10-11 23:19:45 | 显示全部楼层 |阅读模式
make的时候出了点错误,如下代码


/usr/local/src/php-5.2.6/ext/gd/gd.c:4980: undefined reference to `gdImageCreateFromJpeg'
/usr/local/src/php-5.2.6/ext/gd/gd.c:4966: undefined reference to `gdImageCreateFromGif'
ext/gd/.libs/gd.o: In function `_php_image_create_from':
/usr/local/src/php-5.2.6/ext/gd/gd.c:2669: undefined reference to `gdImageCreateFromJpeg'
ext/gd/.libs/gd.o: In function `zif_imagecreatefromjpeg':
/usr/local/src/php-5.2.6/ext/gd/gd.c:2711: undefined reference to `gdImageCreateFromJpegCtx'
/usr/local/src/php-5.2.6/ext/gd/gd.c:2711: undefined reference to `gdImageCreateFromJpeg'
ext/gd/.libs/gd.o: In function `zif_imagecreatefromgif':
/usr/local/src/php-5.2.6/ext/gd/gd.c:2701: undefined reference to `gdImageCreateFromGifCtx'
/usr/local/src/php-5.2.6/ext/gd/gd.c:2701: undefined reference to `gdImageCreateFromGif'
ext/gd/.libs/gd.o: In function `zif_imagecreatefromstring':
/usr/local/src/php-5.2.6/ext/gd/gd.c:2506: undefined reference to `gdImageCreateFromJpegCtx'
/usr/local/src/php-5.2.6/ext/gd/gd.c:2524: undefined reference to `gdImageCreateFromGifCtx'
ext/gd/.libs/gd.o: In function `zif_imagejpeg':
/usr/local/src/php-5.2.6/ext/gd/gd.c:2991: undefined reference to `gdImageJpegCtx'
ext/gd/.libs/gd.o: In function `zif_imagegif':
/usr/local/src/php-5.2.6/ext/gd/gd.c:2963: undefined reference to `gdImageGifCtx'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] 错误 1

gd.c的第4980行我看了 是一句
im_org = gdImageCreateFromJpeg(org);
发表于 2008-10-17 11:57:49 | 显示全部楼层
gd库是怎么装的,configure的参数呢?

修改过 /etc/ld.so.conf 吗?
把gd的库的路径写到/etc/ld.so.conf,然后运行ldconfig
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表