如何在 Debian 中安装 Perl 模块 GD 和 GD::Polyline?

如何在 Debian 中安装 Perl 模块 GD 和 GD::Polyline?

我正在尝试开始马戏团在 Debian 中,但我缺少两个模块

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 libgd这样做了,cpan libgd但没有帮助。

操作系统:Debian 8.5
Perl:5.20
Linux 内核:4.6 向后移植

答案1

sudo apt-get install libgd-perl

将安装 GD 和 GD::Polyline。

相关内容