Perl:安装Alien :: SVN失败,Base类包“Module :: Build”为空

时间:2017-11-08 03:22:11

标签: macos perl homebrew cpan

运行命令cpan Alien::SVN失败并显示以下输出

Base class package "Module::Build" is empty.
    (Perhaps you need to 'use' the module which defines that package first,
    or make that module available in @INC (@INC contains: inc /usr/local/Cellar/perl/5.24.1//lib/perl5/5.24.1/darwin-thread-multi-2level /usr/local/Cellar/perl/5.24.1/lib/perl5/site_perl/5.24.1/darwin-thread-multi-2level /usr/local/Cellar/perl/5.24.1/lib/perl5/site_perl/5.24.1 /usr/local/Cellar/perl/5.24.1/lib/perl5/5.24.1/darwin-thread-multi-2level /usr/local/Cellar/perl/5.24.1/lib/perl5/5.24.1 /usr/local/lib/perl5/site_perl/5.24.1/darwin-thread-multi-2level /usr/local/lib/perl5/site_perl/5.24.1 .).
 at inc/My/SVN/Builder.pm line 5.
BEGIN failed--compilation aborted at inc/My/SVN/Builder.pm line 5.
Compilation failed in require at Build.PL line 6.
BEGIN failed--compilation aborted at Build.PL line 6.
Warning: No success on command[/usr/local/Cellar/perl/5.24.1/bin/perl Build.PL]
  MSCHWERN/Alien-SVN-v1.8.11.0.tar.gz
  /usr/local/Cellar/perl/5.24.1/bin/perl Build.PL -- NOT OK

https://gist.github.com/e072fc0785310f47c3ac1f201eb45d7b

的完整输出

环境

操作系统:MacOS 10.10.5 Perl:5.24.1 Cpan:1.6.1

Perl通过homebrew安装。

我也尝试过设置以下环境变量

export PERL5LIB=${PERL5LIB}:/usr/local/Cellar/perl/5.24.1//lib/perl5/5.24.1/darwin-thread-multi-2level
export PERL_MM_OPT="INSTALL_BASE=$HOME/perl5"

0 个答案:

没有答案