1  tar xvfz circos-***.tgz 

 1 2  $cd circos-0.67-7/bin/ circos-0.67-7/bin$ ./circos 

 1  -bash: ./circos: /bin/env: bad interpreter: No such file or directory 

 1 2  circos-0.67-7/bin$which env /usr/bin/env  将circos-0.67-7/bin/circos文件中的第一行  1 2  #! /bin/env perl替换为 #!/usr/bin/env perl  运行,虽然Mac 的OSX 系统自带peril，但依然提示我有错，缺少perl的组件  1 2 3 4  circos-0.67-7/bin$ ./circos *** REQUIRED MODULE(S) MISSING OR OUT-OF-DATE *** You are missing one or more Perl modules, require newer versions, or some modules failed to load. Use CPAN to install it as described in this tutorial 

  1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36  circos-0.67-7/bin$./circos -modules ok 1.29 Carp ok 0.36 Clone missing Config::General ok 3.40 Cwd ok 2.145 Data::Dumper ok 2.52 Digest::MD5 ok 2.84 File::Basename ok 3.40 File::Spec::Functions ok 0.23 File::Temp ok 1.51 FindBin missing Font::TTF::Font missing GD missing GD::Polyline ok 2.39 Getopt::Long ok 1.16 IO::File ok 0.33 List::MoreUtils ok 1.38 List::Util missing Math::Bezier ok 1.998 Math::BigFloat ok 0.06 Math::Round missing Math::VecStat ok 1.03 Memoize ok 1.32 POSIX ok 1.08 Params::Validate ok 1.61 Pod::Usage missing Readonly ok 2013031301 Regexp::Common missing SVG missing Set::IntSpan missing Statistics::Basic ok 2.41 Storable ok 1.17 Sys::Hostname ok 2.02 Text::Balanced missing Text::Format ok 1.9725 Time::HiRes  检查perl的版本，如果早于5.8应该更新perl  1 2 3 4  circos-0.67-7/bin$ perl -v This is perl 5, version 18, subversion 2 (v5.18.2) built for darwin-thread-multi-2level (with 2 registered patches, see perl -V for more detail) 

  1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24  circos-0.67-7/bin$sudo cpan Sorry, we have to rerun the configuration dialog for CPAN.pm due to some missing parameters. Configuration will be written to CPAN.pm requires configuration, but most of it can be done automatically. If you answer 'no' below, you will enter an interactive dialog for each configuration option instead. Would you like to configure as much as possible automatically? [yes] yes Use of uninitialized value$what in concatenation (.) or string at /System/Library/Perl/5.18/App/Cpan.pm line 553, line 1. Warning: You do not have write permission for Perl library directories. To install modules, you need to configure a local Perl library directory or escalate your privileges. CPAN can help you by bootstrapping the local::lib module or by configuring itself to use 'sudo' (if available). You may also resolve this problem manually if you need to customize your setup. What approach do you want? (Choose 'local::lib', 'sudo' or 'manual') [local::lib] local::lib Autoconfigured everything but 'urllist'. 

  1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27  cpan[1]> install Config::General TLINDEN/Config-General-2.56.tar.gz /usr/bin/make install -- OK cpan[2]> install Font::TTF::Font MHOSKEN/Font-TTF-1.05.tar.gz /usr/bin/make -- OK cpan[3]> install Math::Bezier ABW/Math-Bezier-0.01.tar.gz /usr/bin/make install -- OK cpan[4]> install Math::VecStat ASPINELLI/Math-VecStat-0.08.tar.gz /usr/bin/make install -- OK cpan[5]> install Readonly SANKO/Readonly-2.00.tar.gz ./Build install -- OK cpan[6]> install SVG SZABGAB/SVG-2.63.tar.gz /usr/bin/make install -- OK cpan[7]> install Set::IntSpan SWMCD/Set-IntSpan-1.19.tar.gz /usr/bin/make install -- OK cpan[8]> install Statistics::Basic JETTERO/Statistics-Basic-1.6611.tar.gz /usr/bin/make install -- OK cpan[9]> install Text::Format SHLOMIF/Text-Format-0.59.tar.gz ./Build install -- OK 

*****************************星号中间的内容可以作为Mac安装GD的参考。

/wp/f4w/2020//FileAttach/2015-05-08-install-gd.tar.gz

circos官网http://circos.ca/tutorials

http://zientzilaria.herokuapp.com/blog/2012/06/03/installing-circos-on-os-x/

http://wangqinhu.com/install-gd-on-mavericks/

http://www.jb51.net/os/RedHat/1286.html