我发现在MacOS上安装circos非常非常困难,我在谷歌上找到的所有答案都相当生疏,在MacOS Big Sur版本11.0.1上对我不起作用。以下是我所遗漏的:
(base) user@user-MacBook-Pro % circos -modules
ok 1.50 Carp
ok 0.45 Clone
ok 2.63 Config::General
ok 3.74 Cwd
ok 2.170 Data::Dumper
ok 2.55 Digest::MD5
ok 2.85 File::Basename
ok 3.74 File::Spec::Functions
ok 0.2304 File::Temp
ok 1.51 FindBin
ok 0.39 Font::TTF::Font
missing GD
missing GD::Polyline
ok 2.5 Getopt::Long
ok 1.39 IO::File
ok 0.430 List::MoreUtils
ok 1.5 List::Util
ok 0.01 Math::Bezier
ok 1.999811 Math::BigFloat
ok 0.07 Math::Round
ok 0.08 Math::VecStat
ok 1.03_01 Memoize
ok 1.84 POSIX
ok 1.30 Params::Validate
ok 1.69 Pod::Usage
ok 2.05 Readonly
ok 2017060201 Regexp::Common
ok 2.85 SVG
ok 1.19 Set::IntSpan
ok 1.6611 Statistics::Basic
ok 3.08_01 Storable
ok 1.22 Sys::Hostname
ok 2.03 Text::Balanced
ok 0.62 Text::Format
ok 1.9759 Time::HiRes似乎唯一缺少的包是GD。所以我试着安装了GD。
(base) user@user-MacBook-Pro % curl -O http://www.cpan.org/authors/id/L/LD/LDS/GD-2.50.tar.gz
(base) user@user-MacBook-Pro % tar xvfz GD-2.50.tar.gz
(base) user@user-MacBook-Pro % cd GD-2.50
(base) user@user-MacBook-Pro % perl Makefile.pl
Notice: Type perl Makefile.PL -h for command-line option summary.
**UNRECOVERABLE ERROR**
Could not find gdlib-config in the search path. Please install libgd 2.0.28 or higher.
If you want to try to compile anyway, please rerun this script with the option --ignore_missing_gd.再说一次,问题似乎是缺少libgd。所以我试着安装它:
(base) user@user-MacBook-Pro curl -O https://bitbucket.org/libgd/gd-libgd/downloads/libgd-2.1.0-rc2.tar.gz
(base) user@user-MacBook-Pro tar -xzvf libgd-2.1.0-rc2.tar.gz
(base) user@user-MacBook-Pro cd libgd-2.1.0-rc2
(base) user@user-MacBook-Pro ./configure
(base) user@user-MacBook-Pro make
(base) user@user-MacBook-Pro sudo make install
........
Making install in config
../config/install-sh -c -d '/usr/local/bin'
/usr/bin/install -c gdlib-config '/usr/local/bin'
../config/install-sh -c -d '/usr/local/lib/pkgconfig'
/usr/bin/install -c -m 644 gdlib.pc '/usr/local/lib/pkgconfig'
Making install in tests
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.它对我还是不起作用。如有任何建议,我们将不胜感激。
谢谢,苗苗
发布于 2020-12-14 07:20:11
下面的方法对我很有效。我使用的是perlbrew和perl版本5.30.1,macOS 11.0.1。
$ brew install pkg-config
$ brew install libgd
$ cpanm GD发布于 2020-12-14 17:25:11
我尝试了@ rerunágland的答案,但当我重新运行circos -modules时,它仍然显示缺少GD。我在这里尝试了另一个tutorial,它似乎对我有效。
wget http://search.cpan.org/CPAN/authors/id/L/LD/LDS/GD-2.51.tar.gz
tar xfvz ./GD-2.51.tar.gz
cd GD-2.51/
perl Makefile.PL
make
sudo make installhttps://stackoverflow.com/questions/65281630
复制相似问题