【发布时间】: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