安装Circos:在Mac OS上安装GD模块时出现问题

时间:2016-05-25 21:34:42

标签: homebrew gd osx-yosemite circos

我想安装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链接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的任何解决方案?

提前感谢您的帮助!

1 个答案:

答案 0 :(得分:-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