尝试使用Apache::Singleton
安装cpanp
时出现以下错误:
# cpanp i Apache::Singleton
Installing Apache::Singleton (0.15)
Running [/usr/bin/perl -e use strict; BEGIN { my $old = select STDERR; $|++; select $old; $|++; $0 = shift(@ARGV); my $rv = do($0); die $@ if $@; } /root/.cpanplus/5.20.0/build/Apache-Singleton-0.15/Makefile.PL]...
[ info] generating script t/TEST
Generating a Unix-style Makefile
Writing Makefile for Apache::Singleton
Writing MYMETA.yml and MYMETA.json
[MSG] Module 'Apache::Singleton' depends on 'Apache::Test', may need to build a 'CPANPLUS::Dist::Arch' package for it as well
[MSG] Module 'Apache::Singleton' depends on 'ExtUtils::MakeMaker', may need to build a 'CPANPLUS::Dist::Arch' package for it as well
[MSG] Module 'Apache::Singleton' depends on 'Test::More', may need to build a 'CPANPLUS::Dist::Arch' package for it as well
[MSG] Module 'Apache::Singleton' depends on 'mod_perl2', may need to build a 'CPANPLUS::Dist::Arch' package for it as well
==> Making package: perl-apache-singleton 0.15-1 (Wed Jun 4 22:32:47 FET 2014)
==> Checking runtime dependencies...
==> Missing dependencies:
-> perl-apache-test>=1.35
==> Checking buildtime dependencies...
==> Missing dependencies:
-> perl-apache-test>=0
==> ERROR: Could not resolve all dependencies.
但Apache::Test
已与mod_perl
软件包一起安装。我可以使用perl -e 'use Apache::Test'
验证这一点。如何告诉cpanp
跳过这种依赖?
答案 0 :(得分:1)
目前您无法跳过依赖项,只需测试
cpanp i ... --skiptest
安装"简便方法的另一种方式"可能是cpanm
,你有
cpanm ... --skip-installed
至少您可以随时下载.deb
文件(或.rpm
/ .tgz
,具体取决于您的发行版),然后将其解压缩并提取data.tgz
(在至少.deb
个文件到/
。