centOS7安装db210.5时出现环境的报错

DB2 10.5安装包

v10.5_linuxx64_expc.tar.gz 资源

https://pan.baidu.com/s/1dDrTRPJ

原文:https://blog.csdn.net/gsls200808/article/details/46455821

centOS7安装包

Download (centos.org)

开始:

解压:tar -zxvf v10.5_linuxx64_expc.tar.gz

进入解压后的文件夹:cd /home/expc

检查安装环境::./db2prereqcheck

出现以下报错:

DBT3507E  The db2prereqcheck utility failed to find the following package or file: "kernel-devel". 
 
 
DBT3507E  The db2prereqcheck utility failed to find the following package or file: "gcc-c++". 
 
 
DBT3507E  The db2prereqcheck utility failed to find the following package or file: "cpp". 
 
 
DBT3507E  The db2prereqcheck utility failed to find the following package or file: "gcc". 
 
 
DBT3520E  The db2prereqcheck utility could not find the library file libaio.so.1. 

解决方法:

#先安装kernel-devel包
 
yum install kernel-devel
 
#再安装gcc-c++包,此包会包含其他的依赖
 
yum install gcc-c++ -y
 
#安装完成后再执行
 
yum install libaio.so.1.
 
#最后再次检查一下
 
./db2prereqcheck
 
#还是有问题,执行以下命令安装相应的32位,64位库
 
yum whatprovides libstdc++.so.5
 
yum install libstdc++.so.5
 
yum install compat-libstdc++-33
 
yum install pam-devel.i686
 
echo 'multilib_policy=all' >> /etc/yum.conf
 
yum install -y glibc* libstdc*
 
yum install libaio

vi /etc/selinux/config
 
#将里面的SELINUX=enforcing注释掉
 
#然后加上
 
SELINUX=disabled

然后运行:./db2prereqcheck

直到所有的条件都满足后开始安装

原作者文档:(14条消息) CentOS7 安装DB2 v10.5_linuxx64_expc.tar.gz时碰到的一些问题_贾凹Master的博客-CSDN博客_db2v10.5

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值