我正在尝试安装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。