1.检查安装条件
[$]./db2prereqcheck
结果如下:
ERROR:
The required library file libstdc++.so.5 is not found on the system.
Check the following web site for the up-to-date system requirements
of IBM DB2 9
http://www.ibm.com/software/data/db2/udb/sysreqs.html
http://www.software.ibm.com/data/db2/linux/validate
2.安装libstdc++.so.5库
[$]yum install compat-libstdc++-33
结果如下:
Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
No package compat-libstdc++-33 available.
Nothing to do
3.RHN(RedHat Network没有注册),需要更新yum源
[$] cd /etc/yum.repos.d/
[$] wget http://docs.linuxtone.org/soft/lemp/CentOS-Base.repo
[$] mv rhel-debuginfo.repo rhel-debuginfo.repo.bk
[$] mv CentOS-Base.repo rhel-debuginfo.repo
[$] rhel-debuginfo.repo
4.[$]yum install compat-libstdc++-33
5.最后再检查一遍是否可以
[$]./db2prereqcheck