无法加载perl模块GD

时间:2015-08-23 17:59:41

标签: perl gd

我正在尝试安装GD模块(v2.56)。我可以使用'perl Makefile.PL'成功创建make文件然后'make'但是当我运行'make test'时我得到以下错误: -

t/Polyline.t .. Can't locate loadable object for module GD in @INC (@INC contains: /root/.cpan/build/GD-2.56/blib/lib /root/.cpan/build/GD-2.56/blib/arch /usr/local/lib/perl5/site_perl/5.22.0/x86_64-linux /usr/local/lib/perl5/site_perl/5.22.0 /usr/local/lib/perl5/5.22.0/x86_64-linux /usr/local/lib/perl5/5.22.0 .) at /root/.cpan/build/GD-2.56/blib/lib/GD/Polyline.pm line 45.
Compilation failed in require at /root/.cpan/build/GD-2.56/blib/lib/GD/Polyline.pm line 45.
BEGIN failed--compilation aborted at /root/.cpan/build/GD-2.56/blib/lib/GD/Polyline.pm line 45.
Compilation failed in require at t/Polyline.t line 10.
BEGIN failed--compilation aborted at t/Polyline.t line 10.
t/Polyline.t .. Dubious, test returned 2 (wstat 512, 0x200)

我已经检查并确认GD.pm(2014年10月28日)是在Perl INC路径中,我已经安装了gd,gd-devel,gdbm和gdbm-devel

服务器是Centos 6,perl是v 5.22.0,gd是v2.0.35。

  1. 我做错了什么,我该怎么做?
  2. 是否有替代方案(除了Image :: Magick,我也无法安装)?

0 个答案:

没有答案