我正在尝试使用O-Saft程序来验证我的SSL证书。我在FreeBSD上使用p5。O-Saft的git源代码包含两个名为SSLhello.pm和SSLinfo.pm的模块。在CPAN上找不到这些模块。我把这些模块安装在哪里,这样Perl就可以利用它们了?
这是我的env变量:
PERL5LIB="/home/kevdog/perl5/lib/perl5${PERL5LIB:+:${PERL5LIB}}"; export PERL5LIB;
PERL_LOCAL_LIB_ROOT="/home/kevdog/perl5${PERL_LOCAL_LIB_ROOT:+:${PERL_LOCAL_LIB_ROOT}}"; export PERL_LOCAL_LIB_ROOT;
发布于 2019-02-25 16:22:55
只需在您的Perl程序中use
它们即可。当你运行它时,它会抱怨它们不在@INC
中,并告诉你@INC
中有哪些目录。
将它们放在其中一个目录中,或者修改您的包含路径。
[ ~ ] ➜ perl -MExample -e"echo 1";
Can't locate Example.pm in @INC (you may need to install the Example module) (@INC contains: /Users/quentin/perl5/perlbrew/perls/perl-5.26.0-RC1/lib/site_perl/5.26.0/darwin-2level /Users/quentin/perl5/perlbrew/perls/perl-5.26.0-RC1/lib/site_perl/5.26.0 /Users/quentin/perl5/perlbrew/perls/perl-5.26.0-RC1/lib/5.26.0/darwin-2level /Users/quentin/perl5/perlbrew/perls/perl-5.26.0-RC1/lib/5.26.0).
https://stackoverflow.com/questions/54870529
复制相似问题