3

我正在尝试按照此处的说明(https://mikewest.org/2007/04/installing-libgd-from-source-on-os-x)在我的 mac OSX 10.9 上安装 libgd 并在此处获取更多信息(在 MacOSX 10.6 上为 perl 安装 GD 库)。

主要目标是能够安装和使用 Circos。

我按照所有步骤安装各种库 libpgn、pibjpeg 和 freetype,主要使用./configure && make && make sudo install...但是 1)./congigure来自 libgd 的命令没有找到我刚刚安装的库,我得到的是以下内容:

** Configuration summary for libgd 2.1.0:

   Support for Zlib:                 yes
   Support for PNG library:          no
   Support for JPEG library:         no
   Support for VPX library:          no
   Support for TIFF library:         no
   Support for Freetype 2.x library: no
   Support for Fontconfig library:   no
   Support for Xpm library:          no
   Support for pthreads:             yes

我阅读了建议使用等的 README 文件(yeeee)。--with-png=myDirectory --with-freetype=myDir我这样做了(不确定它是否有所不同)但是当我收到make命令时,我收到以下错误

Undefined symbols for architecture x86_64:
  "___sincos_stret", referenced from:
      _gdImageCopyRotated in gd.o
      _gdAffineRotate in gd_matrix.o
      _gdImageRotateNearestNeighbour in gd_interpolation.o
      _gdImageRotateGeneric in gd_interpolation.o
      _gdImageRotateBilinear in gd_interpolation.o
      _gdImageRotateBicubicFixed in gd_interpolation.o
      _filter_bessel in gd_interpolation.o
      ...
  "_iconv", referenced from:
      _do_convert in gdkanji.o
  "_iconv_close", referenced from:
      _do_convert in gdkanji.o
  "_iconv_open", referenced from:
      _do_convert in gdkanji.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [libgd.la] Error 1
make[1]: *** [all] Error 2
make: *** [all-recursive] Error 1

...更广泛的馅饼:http: //pastebin.com/BuvskMPe

所以我被困住了,我正在网上阅读,看起来它与 Xcode 和 gcc 有关,但我不知道如何解决这个问题。

任何帮助都是极好的!!

4

1 回答 1

8

我使用自制软件成功安装了它。它很简单:

冲泡安装gd

这安装了 lib-gd 版本 2.1.0_1。

于 2014-03-28T00:37:34.350 回答