1 必须下载安装基础包,由于db2 10版本后,下载v10.5fp11_linuxx64_universal_fixpack.tar就可以直接安装,在9.7.0.7上也照样操作,结果解压后,在universal上怎么也找不到安装命令db2_install,后来检查是包下载错了,必须下载基础包v9.7fp7_linuxx64_server.tar.gz 才行,解压后server目录出现了安装命令 db2_install
2 db2_install安装问题
平台:
(2)db2_install执行报错
[root@long-ibm1 server]# ./db2_install
WARNING:
The 32 bit library file libstdc++.so.6 is not found on the system.
32-bit applications may be affected.
WARNING:
The required library file libstdc++.so.5 is not found on the system.
WARNING:
DBT3534W The db2prereqcheck utility determined that ASLR is set to ON and that this could cause issues with some tools.
WARNING:
The 32-bit library file libpam.so is not found on the system.
Check the following web site for the up-to-date system requirements
of IBM DB2 9.7
Aborting the current installation ...
Run installation with the option "-f sysreq" parameter to force the installation.
(3) yum执行安装缺失的包,报错
[root@long-ibm1 server]#
yum install libstdc++.so.6
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
Updating certificate-based repositories.
Unable to read consumer identity
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package libstdc++.i686 0:4.4.6-4.el6 will be installed
--> Processing Dependency: libm.so.6(GLIBC_2.0) for package: libstdc++-4.4.6-4.el6.i686
--> Processing Dependency: libm.so.6 for package: libstdc++-4.4.6-4.el6.i686
--> Processing Dependency: libgcc_s.so.1(GLIBC_2.0) for package: libstdc++-4.4.6-4.el6.i686
--> Processing Dependency: libgcc_s.so.1(GCC_4.2.0) for package: libstdc++-4.4.6-4.el6.i686
--> Processing Dependency: libgcc_s.so.1(GCC_3.3) for package: libstdc++-4.4.6-4.el6.i686
--> Processing Dependency: libgcc_s.so.1(GCC_3.0) for package: libstdc++-4.4.6-4.el6.i686
--> Processing Dependency: libgcc_s.so.1 for package: libstdc++-4.4.6-4.el6.i686
--> Processing Dependency: libc.so.6(GLIBC_2.4) for package: libstdc++-4.4.6-4.el6.i686
--> Processing Dependency: libc.so.6(GLIBC_2.3.2) for package: libstdc++-4.4.6-4.el6.i686
--> Processing Dependency: libc.so.6(GLIBC_2.3) for package: libstdc++-4.4.6-4.el6.i686
--> Processing Dependency: libc.so.6(GLIBC_2.2) for package: libstdc++-4.4.6-4.el6.i686
--> Processing Dependency: libc.so.6(GLIBC_2.1.3) for package: libstdc++-4.4.6-4.el6.i686
--> Processing Dependency: libc.so.6(GLIBC_2.1) for package: libstdc++-4.4.6-4.el6.i686
--> Processing Dependency: libc.so.6(GLIBC_2.0) for package: libstdc++-4.4.6-4.el6.i686
--> Processing Dependency: libc.so.6 for package: libstdc++-4.4.6-4.el6.i686
--> Processing Dependency: ld-linux.so.2(GLIBC_2.3) for package: libstdc++-4.4.6-4.el6.i686
--> Processing Dependency: ld-linux.so.2 for package: libstdc++-4.4.6-4.el6.i686
--> Running transaction check
---> Package glibc.i686 0:2.12-1.80.el6 will be installed
--> Processing Dependency: glibc-common = 2.12-1.80.el6 for package: glibc-2.12-1.80.el6.i686
--> Processing Dependency: libfreebl3.so(NSSRAWHASH_3.12.3) for package: glibc-2.12-1.80.el6.i686
--> Processing Dependency: libfreebl3.so for package: glibc-2.12-1.80.el6.i686
---> Package libgcc.i686 0:4.4.6-4.el6 will be installed
--> Running transaction check
---> Package glibc.i686 0:2.12-1.80.el6 will be installed
--> Processing Dependency: glibc-common = 2.12-1.80.el6 for package: glibc-2.12-1.80.el6.i686
---> Package nss-softokn-freebl.i686 0:3.12.9-11.el6 will be installed
--> Finished Dependency Resolution
Error: Package: glibc-2.12-1.80.el6.i686 (rhel-oracle-lib)
Requires: glibc-common = 2.12-1.80.el6
Installed: glibc-common-2.14.1-6.x86_64 (installed)
glibc-common = 2.14.1-6
Available: glibc-common-2.12-1.80.el6.x86_64 (rhel-oracle-lib)
glibc-common = 2.12-1.80.el6
You could try using --skip-broken to work around the problem
** Found 3 pre-existing rpmdb problem(s), 'yum check' output follows:
glibc-headers-2.14.1-6.x86_64 has missing requires of kernel-headers
glibc-headers-2.14.1-6.x86_64 has missing requires of kernel-headers >= ('0', '2.2.1', None)
glibc-utils-2.14.1-6.x86_64 has missing requires of libgd.so.2()(64bit)
附,linux虚拟机外网配置
cd /etc/sysconfig/network-scripts
ls -lrt |grep ifcfg
-rw-r--r--. 1 root root 254 Apr 27 2012 ifcfg-lo
-rw-r--r--. 1 root root 298 Apr 8 09:47 ifcfg-eth0
[root@long-ibm1 network-scripts]# cat ifcfg-lo
DEVICE=lo
IPADDR=127.0.0.1
NETMASK=255.0.0.0
NETWORK=127.0.0.0
# If you're having problems with gated making 127.0.0.0/8 a martian,
# you can change this to something else (255.255.255.255, for example)
BROADCAST=127.255.255.255
>
NAME=loopback