keeplived离线安装openssl-devel依赖包
转载自素文宅博客:https://blog.yoodb.com/yoodb/article/detail/1434
由于公司业务并发比较高需要高可用使用LVS keeplived
。在linux
系统centos6.5
版本中安装keeplived
时,需要安装penssl-devel
依赖包,但是服务器是不允许连接外网(互联网)的,无法使用yum
命令进行安装操作,所以本人研究了一下如何在离线状态下安装penssl-devel
依赖包。感觉很多坑,所以分享一下个人总结。
在没有安装openssl-devel
依赖包时,进行安装keeplived时可能出现的错误信息:
一:提示openssl未正确安装错误信息如下:
configure: error:
!!! OpenSSL is not properly installed on your system. !!!
!!! Can not include OpenSSL headers files. !!!
二:提示OpenSSL MD5库是必需的错误信息如下:
configure: error: OpenSSL MD5 libraries are required
为了查找安装openssl-devel
包时所需要的其他依赖包(此步大家可以跳过,直接浏览下一步),本人专门搞了个可以连接外网的服务器,执行yum install -y openssl openssl-devel
命令,输出日志如下:
Running Transaction
Updating : libcom_err-1.41.12-23.el6.x86_64 1/32
Updating : libselinux-2.0.94-7.el6.x86_64 2/32
Updating : keyutils-libs-1.4-5.el6.x86_64 3/32
Updating : krb5-libs-1.10.3-65.el6.x86_64 4/32
Installing : libkadm5-1.10.3-65.el6.x86_64 5/32
Updating : libss-1.41.12-23.el6.x86_64 6/32
Updating : openssl-1.0.1e-57.el6.x86_64 7/32
Installing : keyutils-libs-devel-1.4-5.el6.x86_64 8/32
Updating : e2fsprogs-libs-1.41.12-23.el6.x86_64 9/32
Installing : libcom_err-devel-1.41.12-23.el6.x86_64 10/32
Installing : libsepol-devel-2.0.41-4.el6.x86_64 11/32
Installing : libselinux-devel-2.0.94-7.el6.x86_64 12/32
Installing : krb5-devel-1.10.3-65.el6.x86_64 13/32
Installing : zlib-devel-1.2.3-29.el6.x86_64 14/32
Installing : openssl-devel-1.0.1e-57.el6.x86_64 15/32
Updating : e2fsprogs-1.41.12-23.el6.x86_64 16/32
Updating : krb5-workstation-1.10.3-65.el6.x86_64 17/32
Updating : keyutils-1.4-5.el6.x86_64 18/32
Updating : libselinux-python-2.0.94-7.el6.x86_64 19/32
Updating : libselinux-utils-2.0.94-7.el6.x86_64 20/32
Cleanup : krb5-workstation-1.10.3-10.el6_4.6.x86_64 21/32
Cleanup : e2fsprogs-1.41.12-18.el6.x86_64 22/32
Cleanup : openssl-1.0.1e-15.el6.x86_64 23/32
Cleanup : krb5-libs-1.10.3-10.el6_4.6.x86_64 24/32
Cleanup : e2fsprogs-libs-1.41.12-18.el6.x86_64 25/32
Cleanup : libss-1.41.12-18.el6.x86_64 26/32
Cleanup : libselinux-utils-2.0.94-5.3.el6_4.1.x86_64 27/32
Cleanup : libselinux-python-2.0.94-5.3.el6_4.1.x86_64 28/32
Cleanup : keyutils-1.4-4.el6.x86_64 29/32
Cleanup : keyutils-libs-1.4-4.el6.x86_64 30/32
Cleanup : libselinux-2.0.94-5.3.el6_4.1.x86_64 31/32
Cleanup : libcom_err-1.41.12-18.el6.x86_64 32/32
Verifying : e2fsprogs-1.41.12-23.el6.x86_64 1/32
Verifying : krb5-devel-1.10.3-65.el6.x86_64 2/32
Verifying : libcom_err-1.41.12-23.el6.x86_64 3/32
Verifying : krb5-libs-1.10.3-65.el6.x86_64 4/32
Verifying : e2fsprogs-libs-1.41.12-23.el6.x86_64 5/32
Verifying : krb5-workstation-1.10.3-65.el6.x86_64 6/32
Verifying : keyutils-libs-devel-1.4-5.el6.x86_64 7/32
Verifying : libcom_err-devel-1.41.12-23.el6.x86_64 8/32
Verifying : zlib-devel-1.2.3-29.el6.x86_64 9/32
Verifying : keyutils-libs-1.4-5.el6.x86_64 10/32
Verifying : openssl-devel-1.0.1e-57.el6.x86_64 11/32
Verifying : keyutils-1.4-5.el6.x86_64 12/32
Verifying : libselinux-python-2.0.94-7.el6.x86_64 13/32
Verifying : libss-1.41.12-23.el6.x86_64 14/32
Verifying : libsepol-devel-2.0.41-4.el6.x86_64 15/32
Verifying : libselinux-utils-2.0.94-7.el6.x86_64 16/32
Verifying : openssl-1.0.1e-57.el6.x86_64 17/32
Verifying : libkadm5-1.10.3-65.el6.x86_64 18/32
Verifying : libselinux-2.0.94-7.el6.x86_64 19/32
Verifying : libselinux-devel-2.0.94-7.el6.x86_64 20/32
Verifying : e2fsprogs-1.41.12-18.el6.x86_64 21/32
Verifying : libselinux-2.0.94-5.3.el6_4.1.x86_64 22/32
Verifying : openssl-1.0.1e-15.el6.x86_64 23/32
Verifying : libselinux-utils-2.0.94-5.3.el6_4.1.x86_64 24/32
Verifying : libss-1.41.12-18.el6.x86_64 25/32
Verifying : libcom_err-1.41.12-18.el6.x86_64 26/32
Verifying : e2fsprogs-libs-1.41.12-18.el6.x86_64 27/32
Verifying : libselinux-python-2.0.94-5.3.el6_4.1.x86_64 28/32
Verifying : keyutils-libs-1.4-4.el6.x86_64 29/32
Verifying : krb5-libs-1.10.3-10.el6_4.6.x86_64 30/32
Verifying : keyutils-1.4-4.el6.x86_64 31/32
Verifying : krb5-workstation-1.10.3-10.el6_4.6.x86_64 32/32
Installed:
openssl-devel.x86_64 0:1.0.1e-57.el6
Dependency Installed:
keyutils-libs-devel.x86_64 0:1.4-5.el6 krb5-devel.x86_64 0:1.10.3-65.el6
libcom_err-devel.x86_64 0:1.41.12-23.el6
libkadm5.x86_64 0:1.10.3-65.el6 libselinux-devel.x86_64 0:2.0.94-7.el6
libsepol-devel.x86_64 0:2.0.41-4.el6
zlib-devel.x86_64 0:1.2.3-29.el6
Updated:
openssl.x86_64 0:1.0.1e-57.el6
Dependency Updated:
e2fsprogs.x86_64 0:1.41.12-23.el6 e2fsprogs-libs.x86_64 0:1.41.12-23.el6
keyutils.x86_64 0:1.4-5.el6 keyutils-libs.x86_64 0:1.4-5.el6
krb5-libs.x86_64 0:1.10.3-65.el6
krb5-workstation.x86_64 0:1.10.3-65.el6 libcom_err.x86_64 0:1.41.12-23.el6 libselinux.x86_64 0:2.0.94-7.el6
libselinux-python.x86_64 0:2.0.94-7.el6 libselinux-utils.x86_64 0:2.0.94-7.el6 libss.x86_64 0:1.41.12-23.el6
Complete!
通过上述日志分析,使用rpm
命令离线安装openssl-devel
包,所需rpm
包具体如下:
libcom_err-1.41.12-23.el6.x86_64.rpm
libselinux-2.0.94-7.el6.x86_64.rpm
keyutils-libs-1.4-5.el6.x86_64.rpm
krb5-libs-1.10.3-65.el6.x86_64.rpm
libkadm5-1.10.3-65.el6.x86_64.rpm
libss-1.41.12-23.el6.x86_64.rpm
openssl-1.0.1e-57.el6.x86_64.rpm
keyutils-libs-devel-1.4-5.el6.x86_64.rpm
e2fsprogs-libs-1.41.12-23.el6.x86_64.rpm
libcom_err-devel-1.41.12-23.el6.x86_64.rp
libsepol-devel-2.0.41-4.el6.x86_64.rpm
libselinux-devel-2.0.94-7.el6.x86_64.rpm
krb5-devel-1.10.3-65.el6.x86_64.rpm
zlib-devel-1.2.3-29.el6.x86_64.rpm
openssl-devel-1.0.1e-57.el6.x86_64.rpm
e2fsprogs-1.41.12-23.el6.x86_64.rpm
krb5-workstation-1.10.3-65.el6.x86_64.rpm
keyutils-1.4-5.el6.x86_64.rpm
libselinux-python-2.0.94-7.el6.x86_64.rpm
libselinux-utils-2.0.94-7.el6.x86_64.rpm
rpm包下载地址:ftp://mirror.switch.ch/mirror/centos/6/os/x86_64/Packages/,(网络资料,rpm包种类很全),在linux系统可以通过wget命令下载所有的包,新建download-packages.sh
文件,将如下内容增加到文件,具体内容如下:
wget ftp://mirror.switch.ch/mirror/centos/6/os/x86_64/Packages/e2fsprogs-1.41.12-23.el6.x86_64.rpm
wget ftp://mirror.switch.ch/mirror/centos/6/os/x86_64/Packages/e2fsprogs-libs-1.41.12-23.el6.x86_64.rpm
wget ftp://mirror.switch.ch/mirror/centos/6/os/x86_64/Packages/keyutils-1.4-5.el6.x86_64.rpm
wget ftp://mirror.switch.ch/mirror/centos/6/os/x86_64/Packages/keyutils-libs-1.4-5.el6.x86_64.rpm
wget ftp://mirror.switch.ch/mirror/centos/6/os/x86_64/Packages/keyutils-libs-devel-1.4-5.el6.x86_64.rpm
wget ftp://mirror.switch.ch/mirror/centos/6/os/x86_64/Packages/krb5-devel-1.10.3-65.el6.x86_64.rpm
wget ftp://mirror.switch.ch/mirror/centos/6/os/x86_64/Packages/krb5-libs-1.10.3-65.el6.x86_64.rpm
wget ftp://mirror.switch.ch/mirror/centos/6/os/x86_64/Packages/krb5-workstation-1.10.3-65.el6.x86_64.rpm
wget ftp://mirror.switch.ch/mirror/centos/6/os/x86_64/Packages/libcom_err-1.41.12-23.el6.x86_64.rpm
wget ftp://mirror.switch.ch/mirror/centos/6/os/x86_64/Packages/libcom_err-devel-1.41.12-23.el6.x86_64.rpm
wget ftp://mirror.switch.ch/mirror/centos/6/os/x86_64/Packages/libkadm5-1.10.3-65.el6.x86_64.rpm
wget ftp://mirror.switch.ch/mirror/centos/6/os/x86_64/Packages/libselinux-2.0.94-7.el6.x86_64.rpm
wget ftp://mirror.switch.ch/mirror/centos/6/os/x86_64/Packages/libselinux-devel-2.0.94-7.el6.x86_64.rpm
wget ftp://mirror.switch.ch/mirror/centos/6/os/x86_64/Packages/libselinux-python-2.0.94-7.el6.x86_64.rpm
wget ftp://mirror.switch.ch/mirror/centos/6/os/x86_64/Packages/libselinux-utils-2.0.94-7.el6.x86_64.rpm
wget ftp://mirror.switch.ch/mirror/centos/6/os/x86_64/Packages/libsepol-devel-2.0.41-4.el6.x86_64.rpm
wget ftp://mirror.switch.ch/mirror/centos/6/os/x86_64/Packages/libss-1.41.12-23.el6.x86_64.rpm
wget ftp://mirror.switch.ch/mirror/centos/6/os/x86_64/Packages/openssl-1.0.1e-57.el6.x86_64.rpm
wget ftp://mirror.switch.ch/mirror/centos/6/os/x86_64/Packages/openssl-devel-1.0.1e-57.el6.x86_64.rpm
wget ftp://mirror.switch.ch/mirror/centos/6/os/x86_64/Packages/zlib-devel-1.2.3-29.el6.x86_64.rpm
授予download-packages.sh
文件执行权限,并执行脚本命令,具体如下:
[root@yoodb openssl-devel-packages]# chmod 777 download-packages.sh
[root@yoodb openssl-devel-packages]# ./download-packages.sh
执行完成后,目录下会存在openssl-devel所需要的依赖包,依赖包信息如下:
[root@yoodb openssl-devel-packages]# ll
total 6456
-rwxrwxrwx. 1 root root 2171 Sep 4 17:20 downloadpackages.sh
-rw-r--r--. 1 root root 567328 Sep 4 17:21 e2fsprogs-1.41.12-23.el6.x86_64.rpm
-rw-r--r--. 1 root root 124172 Sep 4 17:21 e2fsprogs-libs-1.41.12-23.el6.x86_64.rpm
-rw-r--r--. 1 root root 40152 Sep 4 17:21 keyutils-1.4-5.el6.x86_64.rpm
-rw-r--r--. 1 root root 20684 Sep 4 17:22 keyutils-libs-1.4-5.el6.x86_64.rpm
-rw-r--r--. 1 root root 29456 Sep 4 17:22 keyutils-libs-devel-1.4-5.el6.x86_64.rpm
-rw-r--r--. 1 root root 516132 Sep 4 17:22 krb5-devel-1.10.3-65.el6.x86_64.rpm
-rw-r--r--. 1 root root 691188 Sep 4 17:22 krb5-libs-1.10.3-65.el6.x86_64.rpm
-rw-r--r--. 1 root root 833612 Sep 4 17:22 krb5-workstation-1.10.3-65.el6.x86_64.rpm
-rw-r--r--. 1 root root 38516 Sep 4 17:22 libcom_err-1.41.12-23.el6.x86_64.rpm
-rw-r--r--. 1 root root 33664 Sep 4 17:23 libcom_err-devel-1.41.12-23.el6.x86_64.rpm
-rw-r--r--. 1 root root 146500 Sep 4 17:23 libkadm5-1.10.3-65.el6.x86_64.rpm
-rw-r--r--. 1 root root 111508 Sep 4 17:23 libselinux-2.0.94-7.el6.x86_64.rpm
-rw-r--r--. 1 root root 140160 Sep 4 17:23 libselinux-devel-2.0.94-7.el6.x86_64.rpm
-rw-r--r--. 1 root root 207796 Sep 4 17:23 libselinux-python-2.0.94-7.el6.x86_64.rpm
-rw-r--r--. 1 root root 84072 Sep 4 17:23 libselinux-utils-2.0.94-7.el6.x86_64.rpm
-rw-r--r--. 1 root root 65484 Sep 4 17:23 libsepol-devel-2.0.41-4.el6.x86_64.rpm
-rw-r--r--. 1 root root 42896 Sep 4 17:24 libss-1.41.12-23.el6.x86_64.rpm
-rw-r--r--. 1 root root 1600772 Sep 4 17:24 openssl-1.0.1e-57.el6.x86_64.rpm
-rw-r--r--. 1 root root 1227684 Sep 4 17:24 openssl-devel-1.0.1e-57.el6.x86_64.rpm
-rw-r--r--. 1 root root 44984 Sep 4 17:24 zlib-devel-1.2.3-29.el6.x86_64.rpm
linux
下批量安装某个目录下所有rpm
包,使用rpm命令时带--force参数,具体命令rpm -Uvh --force *.rpm
:
[root@yoodb openssl-devel-packages]# rpm -Uvh --force *.rpm
warning: e2fsprogs-1.41.12-23.el6.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
Preparing... ########################################### [100%]
1:libcom_err ########################################### [ 5%]
2:libselinux ########################################### [ 10%]
3:keyutils-libs ########################################### [ 15%]
4:krb5-libs ########################################### [ 20%]
5:libkadm5 ########################################### [ 25%]
6:libss ########################################### [ 30%]
7:openssl ########################################### [ 35%]
8:keyutils-libs-devel ########################################### [ 40%]
9:e2fsprogs-libs ########################################### [ 45%]
10:libcom_err-devel ########################################### [ 50%]
11:zlib-devel ########################################### [ 55%]
12:libsepol-devel ########################################### [ 60%]
13:libselinux-devel ########################################### [ 65%]
14:krb5-devel ########################################### [ 70%]
15:openssl-devel ########################################### [ 75%]
16:e2fsprogs ########################################### [ 80%]
17:krb5-workstation ########################################### [ 85%]
18:keyutils ########################################### [ 90%]
19:libselinux-python ########################################### [ 95%]
20:libselinux-utils ########################################### [100%]
另一种方式离线安装openssl-devel
依赖包,就是将Redhat ISO
文件当做yum本地数据源,配置完成后,直接使用yum install -y openssl openssl-devel
命令。
上述问题解决成功后,继续执行./configure --prefix=/usr/local/keepalived
命令,报“*** WARNING - this build will not support IPVS with IPv6. Please install libnl/libnl-3 dev libraries to support IPv6 with IPVS.
”错误,解决方案:Keepalived-1.3.5编译安装步骤和启动方式详解:https://blog.yoodb.com/yoodb/article/detail/1378
keeplived离线安装openssl-devel依赖包的更多相关文章
- vue 项目安装sass的依赖包
安装sass的依赖包 npm install --save-dev sass-loader //sass-loader依赖于node-sass npm install --save-dev node- ...
- CentOS6.5 安装Python 的依赖包
1.CentOS6.5 安装Python 的依赖包 yum groupinstall "Development tools"yum install zlib-devel bzip2 ...
- 安装CDH第三方依赖包
安装CDH第三方依赖包: yum install chkconfig python bind-utils psmisc libxslt zlib sqlite cyrus-sasl-plain cyr ...
- 保姆级别的RabbitMQ教程!一看就懂!(有安装教程,送安装需要的依赖包,送Java、Golang两种客户端教学Case)
保姆级别的RabbitMQ教程!一看就懂!(有安装教程,送安装需要的依赖包,送Java.Golang两种客户端教学Case) 目录 什么是AMQP 和 JMS? 常见的MQ产品 安装RabbitM ...
- windows下安装python和依赖包的利器——Anaconda
在windows下安装python和很多依赖包,安装起来略为痛苦,可以使用python的大整合包——Anaconda Anaconda下载地址: http://continuum.io/downloa ...
- dpkg安装deb缺少依赖包的解决方法
[先贴出解决方案(基于Ubuntu)]: 使用dpkg -i *.deb 的时候出现依赖没有安装 使用apt-get -f -y install 解决依赖问题后再执行dpkg安装deb包 === ...
- linux-rpm强制安装跳过依赖包
[root@localhost ~]# rpm -ivh tigervnc-1.10.80-4.20200317git8b4be5fd.el7.x86_64.rpm --nodeps --force ...
- LINUX下编译源码时所需提前安装的常用依赖包列表
yum -y install gcc gcc-c++ autoconf libjpeg libjpeg-devel libpng libpng-devel freetype freetype-deve ...
- RedHat 6.8 离线安装Docker (rpm包安装)
我的环境: [root@localhost ~]# uname -r 2.6.32-642.el6.x86_64 [root@localhost ~]# cat /etc/redhat-release ...
随机推荐
- [AI开发]视频结构化类应用的局限性
算法不是通用的,基于深度学习的应用系统不但做不到通用,即使对于同一类业务场景,还需要为每个场景做定制.特殊处理,这样才能有可能到达实用标准.这种局限性在计算机视觉领域的应用中表现得尤其突出,本文介绍基 ...
- 使用jmeter进行压力测试入门讲解
1.下载安装jmeter 略 我这里放上5.1版本的,有需要可以下载 链接:https://pan.baidu.com/s/1xRZZmTY4do1oDU_xPit94Q&shfl=share ...
- vue-cli 中stylus写样式莫名报错?
报错一: expected "indent", got "eos" 错误截图如下: 在确认stylus安装无误后,我们应该看看是否stylus代码不符合规范. ...
- SQL注入靶场sqli-labs 1-65关全部通关教程
以前说好复习一遍 结果复习到10关就没继续了 真是废物 一点简单的事做不好 继续把以前有头没尾的事做完 以下为Sqli-lab的靶场全部通关答案 目录: less1-less10 less10-les ...
- Hadoop和YARN :map+shuffle+reduce走读
今天做了一个hadoop分享,总结下来,包括mapreduce,及shuffle深度讲解,还有YARN框架的详细说明等. v\:* {behavior:url(#default#VML);} o\:* ...
- Bootstrap Studio Mac网页设计神器
Bootstrap Studio Mac网页设计神器 美丽的组件 Bootstrap Studio附带了大量漂亮的组件,用于构建响应式页面.我们有页眉,页脚,画廊,幻灯片甚至基本元素,如跨度和div. ...
- Java中String类的特殊性
java中特殊的String类型 Java中String是一个特殊的包装类数据有两种创建形式: String s = "abc"; String s = new String(&q ...
- Feign服务调用请求方式及参数总结
前言 最近做微服务架构的项目,在用feign来进行服务间的调用.在互调的过程中,难免出现问题,根据错误总结了一下,主要是请求方式的错误和接参数的错误造成的.在此进行一下总结记录.以下通过分为三种情况说 ...
- 百万年薪python之路 -- socket粘包问题解决
socket粘包问题解决 1. 高大上版解决粘包方式(自定制包头) 整体的流程解释 整个流程的大致解释: 我们可以把报头做成字典,字典里包含将要发送的真实数据的描述信息(大小啊之类的),然后json序 ...
- web前端面试题(含答案)
HTML+CSS1.对WEB标准以及W3C的理解与认识标签闭合.标签小写.不乱嵌套.提高搜索机器人搜索几率.使用外 链css和js脚本.结构行为表现的分离.文件下载与页面速度更快.内容能被更多的用户所 ...