Debian

如何在 Debian 中安裝 Perl 模組 GD 和 GD::Polyline?

  • November 21, 2018

我正在嘗試在 Debian 中啟動Circos,但我得到了兩個缺失的模組

root@masi:/home/masi/circos-0.69# bin/circos -modules | grep missing
missing            GD
missing            GD::Polyline

嘗試安裝

root@masi:/home/masi/circos-0.69# cpan GD
CPAN: Storable loaded ok (v2.49_01)
Reading '/root/.local/share/.cpan/Metadata'
 Database was generated on Fri, 18 Nov 2016 15:53:48 GMT
Running install for module 'GD'
CPAN: Digest::SHA loaded ok (v5.88)
CPAN: Compress::Zlib loaded ok (v2.064)
Checksum for /root/.local/share/.cpan/sources/authors/id/L/LD/LDS/GD-2.56.tar.gz ok
CPAN: File::Temp loaded ok (v0.2304)
CPAN: YAML loaded ok (v1.13)
CPAN: Parse::CPAN::Meta loaded ok (v1.4414)
CPAN: CPAN::Meta loaded ok (v2.142690)
CPAN: Module::CoreList loaded ok (v5.20150214)
CPAN: Module::Build loaded ok (v0.421)
Configuring L/LD/LDS/GD-2.56.tar.gz with Build.PL
**UNRECOVERABLE ERROR**
Could not find gdlib-config in the search path. Please install libgd 2.0.28 or higher.
Warning: No success on command[/usr/bin/perl Build.PL --installdirs site]
 LDS/GD-2.56.tar.gz
 /usr/bin/perl Build.PL --installdirs site -- NOT OK

我也這樣做了apt-get install libgdcpan libgd但沒有幫助。

作業系統:Debian 8.5

Perl:5.20

Linux 核心:4.6 反向移植

sudo apt-get install libgd-perl

將安裝 GD 和 GD::Polyline。

引用自:https://unix.stackexchange.com/questions/324342