2012-07-10 24 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上討論,所以它似乎已經在手中了,但我會再仔細檢查一下。