RedHat Enterprise Linux 5.8 升级openssl

简介:

RedHat Enterprise Linux 5.8升级openssl,遇到以下问题,做下标记:


由于之前安装RedHat Enterprise Linux 5.8 时候只安装了服务器环境,没有安装开发环境导致服务器无法编译代码

只好重新安装 gcc 了。

首先想到的是 用 yum 来安装

运行: yum -y install gcc gcc-c++

提示 this system is not registered with RHN...

您的系统没有在红帽网络上注册...


挂载DVD镜像:

mount /dev/cdrom /mnt   *将光驱挂在到 mnt目录

cd /mnt/Server   *进入光驱目录 注意大小写!

 按顺序依次执行安装:
[root@rhel5 Server]# rpm -ivh kernel-headers-2.6.18-53.el5.i386.rpm 
[root@rhel5 Server]# rpm -ivh glibc-headers-2.5-18.i386.rpm 
[root@rhel5 Server]# rpm -ivh glibc-devel-2.5-18.i386.rpm 
[root@rhel5 Server]# rpm -ivh libgomp-4.1.2-14.el5.i386.rpm 
[root@rhel5 Server]# rpm -ivh gcc-4.1.2-14.el5.i386.rpm 
[root@rhel5 Server]# rpm -ivh libstdc++-devel-4.1.2-14.el5.i386.rpm 
[root@rhel5 Server]# rpm -ivh gcc-c++-4.1.2-14.el5.i386.rpm  

 

 安装完毕!

  rpm -q gcc

  提示:

  gcc-4.1.1-52.el5

  安装成功!


默认perl版本非常低,不能满足openssl升级条件,需升级perl

1
2
3
4
5
6
7
8
9
10
11
# wget 
#下载完以后解压安装
# tar zxvf perl-5.22.1.tar.gz
#cd perl-5.22.1 #./Configure -des -Dprefix=/usr/local/perl 
参数-Dprefix指定安装目录为 /usr/local/perl 
#make 
#make install
#接下来替换系统原有的perl,有最新的了咱就用嘛.
#mv /usr/bin/perl /usr/bin/perl.bak
#ln -s /usr/local/perl/bin/perl /usr/bin/perl
#perl -v


参考资料:

Zlib官网各版本

https://zlib.net/fossils/

Redhat 6.7 x64升级SSH到OpenSSH_7.4p1完整文档

http://www.cnblogs.com/xshrim/p/6472679.html




本文转自 boy461205160 51CTO博客,原文链接:http://blog.51cto.com/461205160/1954589
相关文章
|
1月前
|
Linux 网络安全
linux免密登录报错 Bad owner or permissions on /etc/ssh/ssh_config.d/05-redhat.conf
linux免密登录报错 Bad owner or permissions on /etc/ssh/ssh_config.d/05-redhat.conf
34 1
|
2天前
|
存储 Linux
Redhat Enterprise Linux磁带机简单操作
Redhat Enterprise Linux磁带机简单操作
|
6天前
|
存储 Linux 编译器
[Linux打怪升级之路]-信号的保存和递达
[Linux打怪升级之路]-信号的保存和递达
存储 Unix Linux
16 1
消息中间件 Unix Linux
15 1
存储 Unix Linux
16 0
缓存 Linux Shell
13 3
|
6天前
|
缓存 Linux C语言
[Linux打怪升级之路]-文件操作
[Linux打怪升级之路]-文件操作
|
6天前
|
安全 Linux Android开发
FFmpeg开发笔记(十六)Linux交叉编译Android的OpenSSL库
该文介绍了如何在Linux服务器上交叉编译Android的FFmpeg库以支持HTTPS视频播放。首先,从GitHub下载openssl源码,解压后通过编译脚本`build_openssl.sh`生成64位静态库。接着,更新环境变量加载openssl,并编辑FFmpeg配置脚本`config_ffmpeg_openssl.sh`启用openssl支持。然后,编译安装FFmpeg。最后,将编译好的库文件导入App工程的相应目录,修改视频链接为HTTPS,App即可播放HTTPS在线视频。
FFmpeg开发笔记(十六)Linux交叉编译Android的OpenSSL库
|
16天前
|
安全 应用服务中间件 网络安全
linux_nginx中添加ssl配置(open ssl)
linux_nginx中添加ssl配置(open ssl)
25 1