我正在尝试在 mac osx 上运行 fierce2。我按照http://trac.assembla.com/fierce/wiki/Installing但在激烈运行时出现以下错误:
$ ./fierce
Can't locate Template.pm in @INC (you may need to install the Template module) (@INC contains: /Library/Perl/5.18/darwin-thread-multi-2level /Library/Perl/5.18 /Network/Library/Perl/5.18/darwin-thread-multi-2level /Network/Library/Perl/5.18 /Library/Perl/Updates/5.18.2 /System/Library/Perl/5.18/darwin-thread-multi-2level /System/Library/Perl/5.18 /System/Library/Perl/Extras/5.18/darwin-thread-multi-2level /System/Library/Perl/Extras/5.18 .) at ./fierce line 20.
BEGIN failed--compilation aborted at ./fierce line 20.
我安装了 Template 以及 Template::Toolkit:
cpan[3]> install Template
Template is up to date (2.27).
cpan[1]> install Template::Toolkit
Reading '/Users/andre/.cpan/Metadata'
Database was generated on Fri, 02 Mar 2018 06:41:03 GMT
Template::Toolkit is up to date (undef).
有什么想法可以解决这个问题吗?
答案1
以下是对我有用的方法:
svn co https://svn.assembla.com/svn/fierce/fierce2/trunk/ fierce2/
cd fierce2
sudo perl -MCPAN -e 'install Template'
- 当被要求配置 LWP 时,我接受了默认设置,只是我选择了“sudo”而不是 local::lib 作为权限设置。选项
sudo perl -MCPAN -e 'install Net::CIDR'
brew install cpanminus
sudo cpanm Exception::Class
sudo cpanm --installdeps .
/usr/local/bin/fierce -version fierce Version 2.0-r420`
也许值得检查一下较新的 python 端口,它很简洁,并且使用 pip 可以很好地安装:https://github.com/mschwager/fierce