Skip to content

编译安装PHP出错configure: error: GD build test failed.

2010 五月 15
by 荒野无灯
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
checking pcre install prefix... no
checking whether to enable FTP support... no
checking OpenSSL dir for FTP... no
checking for GD support... yes
checking for the location of libjpeg... /usr/local
checking for the location of libpng... /usr/local
checking for the location of libXpm... no
checking for FreeType 2... /usr/local
checking for T1lib support... no
checking whether to enable truetype string function in GD... yes
checking whether to enable JIS-mapped Japanese font support in GD... no
checking for fabsf... yes
checking for floorf... yes
checking for jpeg_read_header in -ljpeg... yes
checking for png_write_image in -lpng... yes
If configure fails try --with-xpm-dir=<DIR>
checking for FT_New_Face in -lfreetype... yes
configure: error: GD build test failed. Please check the config.log for details.

貌似是说找不到GD 库,由于我前面安装GD是自己编译安装的。

1
--with-gd

修改为

1
--with-gd=/usr/local/gd2/

问题解决.

喜欢这篇文章吗?

请订阅本站 RSS feed填写您的邮件地址,订阅我们的精彩内容:,欢迎点击这里捐赠以支持荒野无灯转播到腾讯微博 转播到腾讯微博

作者:荒野无灯
出处:Hacklog【Hacklog】

声明: 本站遵循 署名-非商业性使用-相同方式共享 3.0 共享协议. 转载请注明转自Hacklog【荒野无灯weblog】

本文链接: http://ihacklog.com/?p=3804

7 Responses Post a comment
  1. 十月 22, 2011

    今天我也遇到这情况了,不同的是

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    checking whether to enable JIS-mapped Japanese font support in GD... no
    checking for jpeg_read_header in -ljpeg... yes
    checking for png_write_image in -lpng... yes
    If configure fails try --with-xpm-dir=<DIR>
    checking for FT_New_Face in -lfreetype... yes
    checking for gdImageString16 in -lgd... no
    checking for gdImagePaletteCopy in -lgd... no
    checking for gdImageCreateFromPng in -lgd... no
    checking for gdImageCreateFromGif in -lgd... no
    checking for gdImageGif in -lgd... no
    checking for gdImageWBMP in -lgd... no
    checking for gdImageCreateFromJpeg in -lgd... no
    checking for gdImageCreateFromXpm in -lgd... no
    checking for gdImageCreateFromGd2 in -lgd... no
    checking for gdImageCreateTrueColor in -lgd... no
    checking for gdImageSetTile in -lgd... no
    checking for gdImageEllipse in -lgd... no
    checking for gdImageSetBrush in -lgd... no
    checking for gdImageStringTTF in -lgd... no
    checking for gdImageStringFT in -lgd... no
    checking for gdImageStringFTEx in -lgd... no
    checking for gdImageColorClosestHWB in -lgd... no
    checking for gdImageColorResolve in -lgd... no
    checking for gdImageGifCtx in -lgd... no
    checking for gdCacheCreate in -lgd... no
    checking for gdFontCacheShutdown in -lgd... no
    checking for gdFreeFontCache in -lgd... no
    checking for gdFontCacheMutexSetup in -lgd... no
    checking for gdNewDynamicCtxEx in -lgd... no
    checking for gdImageCreate in -lgd... no
    configure: error: GD build test failed. Please check the config.log for details.

    我明明安装了gd到/usr/local/gd2 ,php配置时也写了–with-gd=/usr/local/gd2,但还是提示出错。郁闷了。。

  2. 六月 1, 2011

    :!: 我也遇到这问题 可惜 这方法后还是不可以

  3. 四月 1, 2011

    也遇到这个问题了,真麻烦!

  4. 七月 24, 2010

    谢谢,问题解决

  5. 五月 15, 2010


    –with-gd=/usr/local/gd2/
    修改为
    –with-gd=/usr/local/gd2/

    看了半天没看出两行有啥区别,又复制去验证了MD5,确认了两个确实是===的…囧

Leave a Reply

Allowed Tags - You may use these HTML tags and attributes in your comment.

<a href="" title=""> <abbr title=""> <acronym title=""> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <q cite=""> <strong>

 :wink:  :-|  :-x  :twisted:  :)  8-O  :(  :roll:  :-P  :oops:  :-o  :mrgreen:  :lol:  :idea:  :-D  :evil:  :cry:  8)  :arrow:  :-?  :?:  :!:

Note: You may use basic HTML in your comments. Your email address will not be published.

Subscribe to this comment feed via RSS