安装Openssl

方法一

yum -y install openssl openssl-devel

一般情况方法一就够了。不行在尝试方法二,方法二真心有点二。会出很多错

方法二

1、下载安装包

[appadm@localhost  ~]$ wget http://www.openssl.org/source/openssl-0.9.8.tar.gz   
--2015-05-15 00:18:07--  http://www.openssl.org/source/openssl-0.9.8.tar.gz
Resolving www.openssl.org... 194.97.150.234
Connecting to www.openssl.org|194.97.150.234|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3259550 (3.1M) [application/x-gzip]
Saving to: ?.penssl-0.9.8.tar.gz?

100%[======================================>] 3,259,550    185K/s   in 18s    

2015-05-15 00:18:25 (180 KB/s) - ?.penssl-0.9.8.tar.gz?.saved [3259550/3259550]

[appadm@localhost  ~]$ 本篇文章来源于 Linux公社网站(www.linuxidc.com)  原文链接://www.linuxidc.com/Linux/2011-03/33455.htm

2.解压安装包

[appadm@localhost  soft]$ tar -xzf openssl-0.9.8.tar.gz

3、编译


[appadm@localhost  openssl-0.9.8]$ ./config --prefix=/usr/local/openssl
[appadm@localhost  openssl-0.9.8]$


4执行命令./config -t

[appadm@localhost openssl-0.9.8]$ ./config -t
Operating system: i686-whatever-linux2
Configuring for linux-elf
/usr/bin/perl ./Configure linux-elf
[appadm@localhost openssl-0.9.8]$

5、安装make

6、make install



你可能感兴趣的:(安装Openssl)