DB2 10.5安装包
v10.5_linuxx64_expc.tar.gz 资源
https://pan.baidu.com/s/1dDrTRPJ
原文:https://blog.csdn.net/gsls200808/article/details/46455821
centOS7安装包
开始:
解压: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