【问题标题】:Installing Circos: Problems installing GD module on Mac OS安装 Circos:在 Mac OS 上安装 GD 模块时出现问题
【发布时间】:2016-05-26 16:50:03
【问题描述】:

我想安装 Circos。我关注了 Circos 网站上的instructions。特别是,我检查了缺少的 perl 模块。我错过了其中几个:

missing            Font::TTF::Font
missing            GD
missing            GD::Polyline
missing            SVG
missing            Statistics::Basic
missing            Text::Format

所以我再次关注了 Circos 网站上的 instructions about Installing Perl Modules on Mac OS X。具体来说,我关注了detailed instructions in Paulo Nuin's blog post。 Freetype 和 Fontconfig 丢失了,我安装了它们。

现在,当我运行 libgd-2.2.1 的配置时,我得到以下配置摘要:

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

对我来说已经足够好了。但是当我运行 make 时,我得到了错误:

clang: warning: argument unused during compilation: '-pthread'
ld: malformed 64-bit a.b.c.d.e version number: 4.20201
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

由于它不起作用,我跟着this recommendation on Stackoverflow跑了

brew install gd

(我必须通过这样做来更新 brew

cd /usr/local/Library
git pull origin master

关注this answer on Stackoverflow。)

但我得到一个错误:

Error: You must `brew link libpng freetype` before gd can be installed

当我运行“brew link libpng freetype”时,我得到另一个错误:

Linking /usr/local/Cellar/libpng/1.6.21... 
Error: Could not symlink bin/libpng-config
Target /usr/local/bin/libpng-config
already exists. You may want to remove it:
  rm '/usr/local/bin/libpng-config'

To force the link and overwrite all conflicting files:
  brew link --overwrite libpng

To list all files that would be deleted:
  brew link --overwrite --dry-run libpng

最终能够运行 Circos 的任何解决方案?

提前感谢您的帮助!

【问题讨论】:

    标签: homebrew gd osx-yosemite circos


    【解决方案1】:

    最后,我通过更改/usr/local中的权限解决了这个问题:

    sudo chown -R $(whoami) /usr/local

    关注recommendations on brew webpage

    一旦解决了这个问题,我就在 Perl 中安装了 GD,as described in the last step in Paulo Nuin's post

    【讨论】:

      猜你喜欢
      • 2011-07-06
      • 2019-10-18
      • 1970-01-01
      • 2019-04-27
      • 1970-01-01
      • 1970-01-01
      • 2011-04-07
      • 1970-01-01
      • 2021-08-06
      相关资源
      最近更新 更多