本文介绍了尝试安装Tree :: Suffix时Devel :: CheckLib语法错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试安装树:安装了Perl 5.18.1的Debian测试系统上的CPAN的:Suffix 模块.

在编译过程中,我收到一堆与 Devel :: CheckLib .

During compliation, I get a bunch of syntax errors and warnings, related to Devel::CheckLib.

  CPAN.pm: Building G/GR/GRAY/Tree-Suffix-0.21.tar.gz

syntax error at inc/Devel/CheckLib.pm line 164, near "$mm_attr_key qw(LIBS INC)"
syntax error at inc/Devel/CheckLib.pm line 171, near "}"
Global symbol "%args" requires explicit package name at inc/Devel/CheckLib.pm line 175.
syntax error at inc/Devel/CheckLib.pm line 179, near "}"
syntax error at inc/Devel/CheckLib.pm line 185, near "}"
Global symbol "@headers" requires explicit package name at inc/Devel/CheckLib.pm line 192.
Global symbol "@libs" requires explicit package name at inc/Devel/CheckLib.pm line 223.
Global symbol "@libpaths" requires explicit package name at inc/Devel/CheckLib.pm line 230.
Global symbol "@libpaths" requires explicit package name at inc/Devel/CheckLib.pm line 236.
Global symbol "@libpaths" requires explicit package name at inc/Devel/CheckLib.pm line 240.
syntax error at inc/Devel/CheckLib.pm line 252, near "}"
inc/Devel/CheckLib.pm has too many errors.
Compilation failed in require at Makefile.PL line 7.

完整日志位于此处.

我做错什么了吗?有人可以尝试安装Tree :: Suffix时确认这些错误吗?

Am I doing anything wrong? Can somebody please confirm these errors occur when trying to install Tree::Suffix?

如果这是一个错误,它是属于Tree :: Suffix还是属于Devel :: CheckLib,Perl或Debian?

If this is a bug, does it belong to Tree::Suffix, to Devel::CheckLib, Perl or Debian?

任何帮助将不胜感激!

推荐答案

它是Devel :: CheckLib的旧捆绑版本,其使用的语法现在在perl 5.18.x中无效.有关详细信息,请参见新创建的 RT票证.如果在for ... qw(...)调用周围添加缺少的括号,则可能会起作用.

It's an old bundled version of Devel::CheckLib which is using syntax now invalid in perl 5.18.x. For the details see the freshly created RT Ticket. Probably it will work if you add the missing parenthesis around the for ... qw(...) calls.

这篇关于尝试安装Tree :: Suffix时Devel :: CheckLib语法错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-14 18:45