写在前面
这些问题你们几乎不会遇到,所以请你忽略这篇文章,嘿嘿。那么,为啥我遇到了这个问题呢?因为我们甲方提供的服务器它不能连接外网,不能使用yum命令安装组件,也没有本地的yum源,非常难受。就比如,我给你一台智能手机,你发现不能联网,不能安装自己需要的软件。
报错是这样的
Operating system: x86_64-whatever-linux2 You need Perl 5
[root@localhost openssl-1.1.1k]# ./config --prefix=/usr/local/ssl -d shared
Operating system: x86_64-whatever-linux2
You need Perl 5.
openssl编译步骤
wget https://www.openssl.org/source/openssl-1.1.1k.tar.gz
tar -zxf openssl-1.1.1k.tar.gz
cd openssl-1.1.1k
./config --prefix=/usr/local/ssl -d shared
make && make install
echo '/usr/local/ssl/lib' >> /etc/ld.so.conf
ldconfig -v
在执行编译时 ./config --prefix=/usr/local/ssl -d shared
这一步执行报错了,无法继续编译。
解决方式
需要安装 perl-5.34.0.tar.gz
网址连接:https://www.cpan.org/src/README.html
安装步骤
wget https://www.cpan.org/src/5.0/perl-5.34.0.tar.gz
tar -xzf perl-5.34.0.tar.gz
cd perl-5.34.0
./Configure -des -Dprefix=$HOME/localperl
make
make test
make install
安装完成后,即可编译成功。