1

我正在尝试让 GD perl 模块在我的 mac 上工作。我已经安装了 gd 库

$ gdlib-config --all
GD library  2.1.0
includedir: /usr/local/include
cflags:     -I/usr/local/include
ldflags:     -L/usr/X11/lib -L/usr/local/lib
libs:       -ljpeg -lz  -L/usr/local/lib -lpng16 -L/usr/local/lib -lfreetype -lz -lbz2 -lpng16 -liconv
libdir:     /usr/local/lib
features:   GD_JPEG GD_FREETYPE GD_PNG GD_GIF GD_GIFANIM GD_OPENPOLYGON

然而 GD 未能通过 make 测试

$ make test
PERL_DL_NONLAZY=1 /Users/smithk/perl5/perlbrew/perls/perl-5.16.0/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/GD.t ........ 1/12 Testing using png support.
t/GD.t ........ Failed 7/12 subtests 
(less 2 skipped subtests: 3 okay)
t/Polyline.t .. ok   

Test Summary Report
-------------------
t/GD.t      (Wstat: 0 Tests: 12 Failed: 7)
  Failed tests:  2-7, 10
Files=2, Tests=13,  0 wallclock secs ( 0.02 usr  0.01 sys +  0.09 cusr  0.01 csys =  0.13 CPU)
Result: FAIL
Failed 1/2 test programs. 7/13 subtests failed.
make: *** [test_dynamic] Error 255

我意识到 GD make 测试是否成功,所以如果我强制安装,我仍然无法让 Circos 程序使用它。通过 circos 测试 GD 时出现以下错误:

Can't locate object method "png" via package "GD::Image" at ./gddiag line 209.

不知道出了什么问题...

4

0 回答 0