在这种特殊情况下,我试图访问IPC :: Open3:
bash-4.2# perl RunScript hier_clustering1.py
Can't locate IPC/open3.pm in @INC (you may need to install the IPC::open3 module) (@INC contains: /root/perl5/perlbrew/perls/perl-5.20.0/lib/site_perl/5.20.0/x86_64-linux /root/perl5/perlbrew/perls/perl-5.20.0/lib/site_perl/5.20.0 /root/perl5/perlbrew/perls/perl-5.20.0/lib/5.20.0/x86_64-linux /root/perl5/perlbrew/perls/perl-5.20.0/lib/5.20.0 .) at RunScript line 4.
BEGIN failed--compilation aborted at RunScript line 4.
bash-4.2# cd /root/perl5/perlbrew/perls/perl-5.20.0/lib/5.20.0
bash-4.2# cd IPC
bash-4.2# ls
Cmd.pm Open2.pm Open3.pm
正如您所见,IPC :: Open3已明确安装并且在路径中。
这是在perlbrew shell中运行perlbrew安装的perl:
bash-4.2# which perl
/root/perl5/perlbrew/perls/perl-5.20.0/bin/perl
这是怎么回事?
答案 0 :(得分:4)
检查您的大小写。 open3
和Open3
不同。