libgd and GD problem (installing Circos)
原文日期: 2016-11-15
来源: https://github.com/wlz0726/wlz0726.github.io
Circos 安装问题 - libgd
问题描述
安装 Circos 时遇到的 libgd 依赖问题:
解决方案
macOS
1 2 3 4 5 6 7
| brew install gd
cpan GD
cpanm GD
|
Ubuntu/Debian
1 2 3 4 5
| sudo apt-get install libgd-dev
sudo cpan GD
|
CentOS/RHEL
1 2
| sudo yum install gd-devel cpan GD
|
验证安装
1 2 3 4 5 6 7 8 9 10 11
| #!/usr/bin/perl use GD;
print "GD module installed successfully\n";
# 创建简单图像 my $img = GD::Image->new(100, 100); my $white = $img->colorAllocate(255, 255, 255); my $black = $img->colorAllocate(0, 0, 0);
$img->rectangle(0, 0, 99, 99, $black);
|
Circos 完整安装
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
| git clone https://github.com/krishah/circos.git cd circos
cpan Config::General cpan Math::VecStat cpan Math::Bezier cpan Math::Round cpan Math::CDF cpan SVG cpan Clone cpan Font::TTF
bin/circos --conf etc/test.conf
|
常见问题
1. GD 安装失败
1 2 3 4 5
| which gd-config
export PATH=/usr/local/bin:$PATH
|
2. 字体问题
1 2
| brew install fontconfig
|
此文档为 GitHub 博客自动归档