博主呓语:

Centos安装GD过程中报错的解决办法

Posted by 破冰 on 2013-1-31 12:51 Thursday

/usr/local/src/lamp/gd-2.0.35/gdparttopng.c:42: undefined reference to `gdImageCreateFromGd2Part'
collect2: ld returned 1 exit status
make[2]: *** [gdparttopng] 错误 1
make[2]: Leaving directory `/usr/local/src/lamp/gd-2.0.35'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/usr/local/src/lamp/gd-2.0.35'
make: *** [all] 错误 2


解决办法:

先用yum安装下几个需要的库

yum install libjpeg-devel freetype-devel libpng-devel

然后重新make && make install

发表评论: