0

我想安装 Circos。我按照Circos 网站上的说明进行操作。特别是,我检查了缺少的 perl 模块。我错过了其中几个:

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

所以我再次按照Circos 网站上关于在 Mac OS X 上安装 Perl 模块的说明进行操作。具体来说,我遵循了Paulo Nuin 博客文章中的详细说明。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

由于它不起作用,我在 Stackoverflow 上遵循了这个建议,然后我跑了

冲泡安装gd

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

cd /usr/local/Library
git pull origin master

在 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 的任何解决方案?

在此先感谢您的帮助!

4

1 回答 1

-1

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

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

遵循brew 网页上的建议

一旦解决了这个问题,我就在 Perl 中安装了 GD,如 Paulo Nuin 帖子的最后一步所述

于 2016-05-26T08:43:43.133 回答