Perl框架使用可选模块IO::Socket::SSL进行安全连接。
必须使用IO::Socket::SSL卡尔顿 (cpanfile包含依赖项列表)来安装must和。
为了使用IO::Socket::SSL,我需要安装Net::SSLeay。
Net::SSLeay需要安装LibreSSL或OpenSSL。
在开发人员的服务器上,确定的Perl项目必须使用确定的LibreSSL/OpenSSL版本:
$HOME/opt/LibreSSL/v1
$HOME/opt/LibreSSL/v...
$HOME/opt/OpenSSL/v1
$HOME/opt/OpenSSL/v...我的解决方案是更改$PATH系统变量(用于本地自定义LibreSSL/OpenSSL):
- execution "carton install" command
- running of a Perl project for testing这条路对吗?
发布于 2019-12-10 22:12:42
确定要链接到哪个OpenSSL实例是由Net::SSLeay在安装过程中完成的(IO::Socket::SSL只是该模块的接口)。它在其自述文件中解释了
If your OpenSSL is installed in an unusual place, you can tell
Net-SSLeay where to find it with the OPENSSL_PREFIX environment
variable:
OPENSSL_PREFIX=/home/mikem/playpen/openssl-1.0.2c perl Makefile.PL一旦安装完毕,就不再需要使用该模块向相应的Perl项目表示。
https://stackoverflow.com/questions/59275995
复制相似问题