centos6.5安装php5.3.25时make的出现的错误:make: *** [sapi/cli/php] Error 1,请问如何解决?

[复制链接]
查看11 | 回复0 | 2021-1-27 06:45:09 | 显示全部楼层 |阅读模式
rt
具体错误提示:
/root/php-5.3.25/ext/gd/gd.c:2266:undefinedreferenceto`gdGetC'
/root/php-5.3.25/ext/gd/gd.c:2266:undefinedreferenceto`getmbi'
/root/php-5.3.25/ext/gd/gd.c:2266:undefinedreferenceto`skipheader'
ext/gd/.libs/gd.o:Infunction`zif_imageloadfont':
/root/php-5.3.25/ext/gd/gd.c:1528:undefinedreferenceto`overflow2'
/root/php-5.3.25/ext/gd/gd.c:1534:undefinedreferenceto`overflow2'
collect2:ldreturned1exitstatus
make:***[sapi/cli/php]Error1
我的configure:
./configure--prefix=/usr/local/php--with-apxs2=/usr/local/httpd/bin/apxs--with-mysql=/usr/local/mysql/--enable-mbstring--with-openssl--with-mhash--with-mcrypt=/usr/local/libmcrypt/--with-gettext--with-zlib-dir=/usr/local/zlib/--enable-zip--enable-sockets--enable-soap--with-xmlrpc--with-libxml-dir=/usr/local/libxml2--with-gd=/usr/local/libgd2/--with-png-dir=/usr/local/libpng/--with-jpeg-dir=/usr/local/jpeg8/--with-freetype-dir=/usr/local/freetype/--with-libxml-dir=/usr/local/libxml2--enable-ftp--enable-gd-native-ttf
这个没有什么问题,接着直接make,之后就出现上述的错误。请问如何解决?
我试过网上的:http://www.cnitblog.com/linus2k/archive/2012/03/01/77877.html
这里两个方法都不行,会报另一个错误:
/usr/bin/ld:cannotfind-liconv
已经搞了一整天了,还是在这两个错误来来回回,请问各位大神应该怎样解决?谢谢
分 -->
回复

使用道具 举报

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

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行