线程perl 如何将 perl 脚本的列表形式系统调用的 STDOUT 附加到文件 https://stackoverflow.com/questions/59011305/perl-how-can-i-append-stdout-of-list-form-system-call-of-perl-script-to-a-file导致了以下解决方案:use IPC::Run qw( run );
。在我的 macos 10.14.6 上运行 perl 5.18.4 时,出现错误:Can't locate IPC/Run.pm in @INC (you may need to install the IPC::Run module)
。因此,以下安装缺少的 Perl 模块的最简单方法是什么? https://stackoverflow.com/questions/65865/whats-the-easiest-way-to-install-a-missing-perl-module, I did
> cpan IPC::Run
<snip: 403 lines later>
Appending installation info to /Users/BNW/perl5/lib/perl5/darwin-thread-multi-2level/perllocal.pod
TODDR/IPC-Run-20180523.0.tar.gz
/usr/bin/make install -- OK
并重新启动我的 MacBook Pro。我编辑了我的 perl 脚本,bosswrap.pl
, 开始
#!/usr/bin/perl
use strict; use warnings;
use IPC::Run qw( run );
但这再次引发了与之前相同的错误:
> bosswrap.pl
Can't locate IPC/Run.pm in @INC (you may need to install the IPC::Run module) (@INC contains: /sw/lib/perl5/darwin-thread-multi-2level /sw/lib/perl5 /sw/lib/perl5/darwin /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.4 /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 /Users/BNW/u/kh/bin/bosswrap.pl line 3.
BEGIN failed--compilation aborted at /Users/BNW/u/kh/bin/bosswrap.pl line 3.
我做错了什么,或者更确切地说,我怎样才能让它发挥作用?
尝试以下操作:
sudo perl -MCPAN -e 'install -force Net::ARP'
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)