在Mac 10.9中安装libgd时出错 [英] error installing libgd in mac 10.9

查看:123
本文介绍了在Mac 10.9中安装libgd时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试按照此处的说明在我的Mac OSX 10.9上安装libgd(在MacOSX 10.6上为perl安装GD库).

I'm trying to install libgd on my mac OSX 10.9 following the instructions here (https://mikewest.org/2007/04/installing-libgd-from-source-on-os-x) and peaking on some more info here (Installing GD library for perl on MacOSX 10.6).

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

the main goal is to be able to install and use Circos.

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

i followed all the steps to install the various libraries libpgn, pibjpeg and freetype using mainly ./configure && make && make sudo install...however 1) the ./congigure command from libgd does not find the libraries that I just installed and what I get is the following:

** 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

我阅读了建议使用--with-png=myDirectory --with-freetype=myDir等的自述文件(yeeee).我做到了(不确定是否有所作为),但是当我进入make命令时,出现了以下错误

i read the README file (yeeee) suggesting to use --with-png=myDirectory --with-freetype=myDir etc..i did that (not sure if it made a difference) but when I get to the make command I get the following error

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

...more extensive in pastie: http://pastebin.com/BuvskMPe

所以我被困住了,我在网上阅读,看起来好像与Xcode和gcc有关,但是我找不到解决方法.

so I'm stuck, I'm reading online and it looks like it has to do with Xcode and gcc but I can't find out how to troubleshoot this.

任何帮助都会很棒!

推荐答案

我使用自制软件成功安装了它.就像这样简单:

I successfully installed it using homebrew. It was as simple as:

酿造gd

此版本安装了lib-gd版本2.1.0_1.

This installed lib-gd version 2.1.0_1.

这篇关于在Mac 10.9中安装libgd时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆