2012-07-10 69 views
1

我想在Mac OSX 10.6安装舞者::插件::供稿,我遇到了此依赖性问题:t :: lib :: TestApp不在CPAN中?

CPAN.pm: Going to build H/HO/HOBBESTIG/Dancer-Plugin-Feed-0.7.tar.gz 

Checking if your kit is complete... 
Looks good 
Writing Makefile for Dancer::Plugin::Feed 
Writing MYMETA.yml and MYMETA.json 
---- Unsatisfied dependencies detected during ---- 
---- HOBBESTIG/Dancer-Plugin-Feed-0.7.tar.gz ---- 
    t::lib::TestApp [build_requires] 
Shall I follow them and prepend them to the queue 
of modules we are processing right now? [yes] 
Running make test 
    Delayed until after prerequisites 
Running make install 
    Delayed until after prerequisites 
Running install for module 't::lib::TestApp' 
    The module t::lib::TestApp isn't available on CPAN. 

    Either the module has not yet been uploaded to CPAN, or it is 
    temporary unavailable. Please contact the author to find out 
    more about the status. Try 'i t::lib::TestApp'. 

我的Perl VERSON:

perl --version 

This is perl, v5.10.0 built for darwin-thread-multi-2level 
(with 2 registered patches, see perl -V for more detail) 

我试着找出问题所在,但没有运气。

任何人都可以帮忙吗?

回答

1

的问题不是该模块是不是CPAN。 It's there作为Dancer :: Plugin :: Feed发行版的一部分。问题似乎是CPAN.pm无法看到它在分发版中可用。

CPAN.pm被看作是一个有点老套的这些日子。你有没有试过CPANPLUS(你将用Perl 5.10.0安装)还是cpanminus?

+0

使用cpanp修复了这个问题 - 谢谢! – b20000 2012-07-10 13:19:03

3

t::lib::TestApp是该模块的测试的一部分,它包括分布中,但不打算真正进行安装。

但是,看起来好像Makefile.PL中的prereqs可能是由Dist :: Zilla自动生成的,并且在其中一个测试中看到了use t::lib::TestApp语句,并将该模块添加到了pre-reqs中。

强制安装的模块应该现在的工作;该插件的作者将需要发布一个带有固定的前置请求列表的更新版本。我相信我之前看到这个问题正在IRC上讨论,所以它似乎已经在手中了,但我会再仔细检查一下。