1 问题

使用from LAC import LAC时报错
ImportError: libssl.so.1.1: cannot open shared object file: No such file or directory

2 解决办法

源码安装openssl

参考:https://blog.csdn.net/estelle_belle/article/details/111181037

1 问题

centos系统通过源码安装openssl时执行“./config --prefix=/usr/local/openssl1.1.1”报错:

Operating system: x86_64-whatever-linux2
Can’t locate FindBin.pm in @INC (you may need to install the FindBin module) (@INC contains: /usr/local/lib64/perl5/5.32 /usr/local/share/perl5/5.32 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at ./Configure line 15.
BEGIN failed–compilation aborted at ./Configure line 15.
Can’t locate FindBin.pm in @INC (you may need to install the FindBin module) (@INC contains: /usr/local/lib64/perl5/5.32 /usr/local/share/perl5/5.32 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at ./Configure line 15.
BEGIN failed–compilation aborted at ./Configure line 15.
This system (linux-x86_64) is not supported. See file INSTALL for details.

2 解决办法

解决办法:

sudo yum install perl-FindBin

1 问题

执行make && make install报错

/usr/bin/perl “-I.” -Mconfigdata “util/dofile.pl”
“-oMakefile” include/crypto/bn_conf.h.in > include/crypto/bn_conf.h
/usr/bin/perl “-I.” -Mconfigdata “util/dofile.pl”
“-oMakefile” include/crypto/dso_conf.h.in > include/crypto/dso_conf.h
/usr/bin/perl “-I.” -Mconfigdata “util/dofile.pl”
“-oMakefile” include/openssl/opensslconf.h.in > include/openssl/opensslconf.h
make depend && make _all
make[1]: Entering directory ‘/data/jupyterdata/openssl-1.1.1u’
Can’t locate File/Compare.pm in @INC (you may need to install the File::Compare module) (@INC contains: . /usr/local/lib64/perl5/5.32 /usr/local/share/perl5/5.32 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at ./util/add-depends.pl line 16.
BEGIN failed–compilation aborted at ./util/add-depends.pl line 16.
make[1]: *** [Makefile:264: depend] Error 2
make[1]: Leaving directory ‘/data/jupyterdata/openssl-1.1.1u’
make: *** [Makefile:174:all] 错误 2

2 解决办法

sudo yum install perl-File-Compare -y

1 问题

执行make && make install报错
Cannot create directory /usr/local/openssl1.1.1: Permission denied
make: *** [Makefile:436:install_runtime_libs] 错误 2

2 解决

这个错误提示告诉我们当前用户没有权限在/usr/local目录下创建openssl1.1.1目录。在执行make install时,可以添加prefix参数,将openssl安装到可读写的目录下。比如安装到当前用户的主目录下的openssl-1.1.1目录,命令如下:

./config --prefix=/home/用户名/openssl-1.1.1
make && make install

1 问题

执行make && make install报错

报错:Can’t locate File/Copy.pm in @INC (you may need to install the File::Copy module) (@INC contains: /usr/local/lib64/perl5/5.32 /usr/local/share/perl5/5.32 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at ./util/process_docs.pl line 14.
BEGIN failed–compilation aborted at ./util/process_docs.pl line 14.
make: *** [Makefile:502:install_man_docs] 错误 2

2 解决

这个错误提示告诉我们当前系统的Perl里面没有File::Copy模块。可以通过以下命令安装File::Copy模块:

sudo yum install perl-File-Copy -y
安装完成后,重新执行make命令即可。

GitHub 加速计划 / ope / openssl
25.12 K
9.99 K
下载
传输层安全性/安全套接层及其加密库
最近提交(Master分支:1 天前 )
fd39d1c8 Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Shane Lontis <shane.lontis@oracle.com> (Merged from https://github.com/openssl/openssl/pull/25095) 1 个月前
ae87c488 Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Shane Lontis <shane.lontis@oracle.com> (Merged from https://github.com/openssl/openssl/pull/25095) 1 个月前
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐