多平台统一管理软件接口,如何实现多平台统一管理软件接口
275
2022-11-06
mac 测试colc的时候Can't locate Moo/Role.pm in @INC (you may need to install the Moo::Role module)
今天在mac上测试colc的时候,出现了下面的问题:
Can't locate Moo/Role.pm in @INC (you may need to install the Moo::Role module) (@INC contains: /usr/local/Cellar/cloc/1.84/libexec/lib/perl5/darwin-thread-multi-2level /usr/local/Cellar/cloc/1.84/libexec/lib/perl5 /usr/local/Cellar/perl/5.30.0/lib/perl5/site_perl/5.30.0/darwin-thread-multi-2level /usr/local/Cellar/perl/5.30.0/lib/perl5/site_perl/5.30.0 /usr/local/Cellar/perl/5.30.0/lib/perl5/5.30.0/darwin-thread-multi-2level /usr/local/Cellar/perl/5.30.0/lib/perl5/5.30.0 /usr/local/lib/perl5/site_perl/5.30.0) at /usr/local/Cellar/cloc/1.84/libexec/lib/perl5/Parallel/ForkManager/Child.pm line 12.BEGIN failed--compilation aborted at /usr/local/Cellar/cloc/1.84/libexec/lib/perl5/Parallel/ForkManager/Child.pm line 12.Compilation failed in require at /usr/local/Cellar/cloc/1.84/libexec/lib/perl5/Parallel/ForkManager.pm line 12.BEGIN failed--compilation aborted at /usr/local/Cellar/cloc/1.84/libexec/lib/perl5/Parallel/ForkManager.pm line 12.Compilation failed in require at /usr/local/Cellar/cloc/1.84/libexec/bin/cloc line 879.BEGIN failed--compilation aborted at /usr/local/Cellar/cloc/1.84/libexec/bin/cloc line 879.
解决方法
brew unlink perl
然后就可以正常使用了,这里的操作类似于把perl的软连接去掉,想重新把perl链接回来,可以使用
brew link perl
参考文献
[1].cloc not installing required dependencies . from MacOS Homebrew formula crashing. https://github.com/AlDanial/cloc/issues/426
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~