【分享】CentOS 6 64位上安装db2提示缺少 32 bit library file libstdc++.so.6
1.执行db2_install的时候报了错,安装通过了,后来发现解压包下有个预检的脚本,拿来重新执行了下
[root@localhost lib64]# /server/db2prereqcheck
[root@localhost lib64]# /server/db2prereqcheck
WARNING:
The 32 bit library file libstdc++.so.6 is not found on the system.
32-bit applications may be affected.
2.查看了db2prereqcheck,发现要进入到安装包下的子目录db2/linuxamd64/bin下,看到了有个db2prereqcheck,不过该文件是二进制
4.再次执行[root@localhost server]# ./db2prereqcheck就没有报错了
2.查看了db2prereqcheck,发现要进入到安装包下的子目录db2/linuxamd64/bin下,看到了有个db2prereqcheck,不过该文件是二进制
[root@localhost bin]# pwd
/server/db2/linuxamd64/bin
[root@localhost bin]# strings db2prereqcheck
[root@localhost bin]# strings db2prereqcheck
WARNING:
Can‘t use string to find the version of libstdc++.
CXXABI
CXXABI_1.3.1
1.3.1
WARNING:
Required minimum level of libstdc++ is %s
Actual version of the library file detected : %s
/sbin/ldconfig -N -v > %s 2>&1
3.安装库文件
3.安装库文件
[root@localhost lib64]# yum install libstdc++.so.6
Loaded plugins: fastestmirror, refresh-packagekit
Loading mirror speeds from cached hostfile
* base: centos.ustc.edu.cn
* extras: centos.ustc.edu.cn
* updates: centos.ustc.edu.cn
base | 3.7 kB 00:00
extras | 951 B 00:00
updates | 3.5 kB 00:00
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package libstdc++.i686 0:4.4.4-13.el6 set to be updated
--> Processing Dependency: libc.so.6(GLIBC_2.1) for package: libstdc++-4.4.4-13.el6.i686
--> Processing Dependency: libgcc_s.so.1(GCC_4.2.0) for package: libstdc++-4.4.4-13.el6.i686
--> Processing Dependency: libc.so.6(GLIBC_2.0) for package: libstdc++-4.4.4-13.el6.i686
--> Processing Dependency: libgcc_s.so.1 for package: libstdc++-4.4.4-13.el6.i686
--> Processing Dependency: ld-linux.so.2 for package: libstdc++-4.4.4-13.el6.i686
--> Processing Dependency: libc.so.6(GLIBC_2.4) for package: libstdc++-4.4.4-13.el6.i686
--> Processing Dependency: libm.so.6(GLIBC_2.0) for package: libstdc++-4.4.4-13.el6.i686
--> Processing Dependency: libc.so.6(GLIBC_2.1.3) for package: libstdc++-4.4.4-13.el6.i686
--> Processing Dependency: ld-linux.so.2(GLIBC_2.3) for package: libstdc++-4.4.4-13.el6.i686
--> Processing Dependency: libc.so.6(GLIBC_2.3.2) for package: libstdc++-4.4.4-13.el6.i686
--> Processing Dependency: libm.so.6 for package: libstdc++-4.4.4-13.el6.i686
--> Processing Dependency: libgcc_s.so.1(GCC_3.3) for package: libstdc++-4.4.4-13.el6.i686
--> Processing Dependency: libc.so.6(GLIBC_2.2) for package: libstdc++-4.4.4-13.el6.i686
--> Processing Dependency: libgcc_s.so.1(GLIBC_2.0) for package: libstdc++-4.4.4-13.el6.i686
--> Processing Dependency: libc.so.6 for package: libstdc++-4.4.4-13.el6.i686
--> Processing Dependency: libgcc_s.so.1(GCC_3.0) for package: libstdc++-4.4.4-13.el6.i686
--> Processing Dependency: libc.so.6(GLIBC_2.3) for package: libstdc++-4.4.4-13.el6.i686
--> Running transaction check
--> Processing Dependency: glibc = 2.12-1.7.el6 for package: glibc-devel-2.12-1.7.el6.x86_64
--> Processing Dependency: glibc = 2.12-1.7.el6 for package: glibc-common-2.12-1.7.el6.x86_64
--> Processing Dependency: glibc = 2.12-1.7.el6 for package: glibc-headers-2.12-1.7.el6.x86_64
---> Package glibc.i686 0:2.12-1.7.el6_0.5 set to be updated
--> Processing Dependency: libfreebl3.so(NSSRAWHASH_3.12.3) for package: glibc-2.12-1.7.el6_0.5.i686
--> Processing Dependency: libfreebl3.so for package: glibc-2.12-1.7.el6_0.5.i686
---> Package glibc.x86_64 0:2.12-1.7.el6_0.5 set to be updated
---> Package libgcc.i686 0:4.4.4-13.el6 set to be updated
--> Running transaction check
---> Package glibc-common.x86_64 0:2.12-1.7.el6_0.5 set to be updated
---> Package glibc-devel.x86_64 0:2.12-1.7.el6_0.5 set to be updated
---> Package glibc-headers.x86_64 0:2.12-1.7.el6_0.5 set to be updated
---> Package nss-softokn-freebl.i686 0:3.12.8-1.el6_0 set to be updated
---> Package nss-softokn-freebl.x86_64 0:3.12.8-1.el6_0 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
=============================================================================================================================================================
Package Arch Version Repository Size
=============================================================================================================================================================
Installing:
libstdc++ i686 4.4.4-13.el6 base 291 k
Installing for dependencies:
glibc i686 2.12-1.7.el6_0.5 updates 4.3 M
libgcc i686 4.4.4-13.el6 base 104 k
nss-softokn-freebl i686 3.12.8-1.el6_0 updates 109 k
Updating for dependencies:
glibc x86_64 2.12-1.7.el6_0.5 updates 3.7 M
glibc-common x86_64 2.12-1.7.el6_0.5 updates 14 M
glibc-devel x86_64 2.12-1.7.el6_0.5 updates 961 k
glibc-headers x86_64 2.12-1.7.el6_0.5 updates 592 k
nss-softokn-freebl x86_64 3.12.8-1.el6_0 updates 115 k
Transaction Summary
=============================================================================================================================================================
Install 4 Package(s)
Upgrade 5 Package(s)
Total download size: 24 M
Is this ok [y/N]: y
Downloading Packages:
(1/9): glibc-2.12-1.7.el6_0.5.i686.rpm | 4.3 MB 00:18
(2/9): glibc-2.12-1.7.el6_0.5.x86_64.rpm | 3.7 MB 00:16
(3/9): glibc-common-2.12-1.7.el6_0.5.x86_64.rpm | 14 MB 01:04
(4/9): glibc-devel-2.12-1.7.el6_0.5.x86_64.rpm | 961 kB 00:04
(5/9): glibc-headers-2.12-1.7.el6_0.5.x86_64.rpm | 592 kB 00:02
(6/9): libgcc-4.4.4-13.el6.i686.rpm | 104 kB 00:00
(7/9): libstdc++-4.4.4-13.el6.i686.rpm | 291 kB 00:01
(8/9): nss-softokn-freebl-3.12.8-1.el6_0.i686.rpm | 109 kB 00:00
(9/9): nss-softokn-freebl-3.12.8-1.el6_0.x86_64.rpm | 115 kB 00:00
-------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 228 kB/s | 24 MB 01:48
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : libgcc-4.4.4-13.el6.i686 1/14
Updating : glibc-common-2.12-1.7.el6_0.5.x86_64 2/14
Updating : glibc-2.12-1.7.el6_0.5.x86_64 3/14
Updating : nss-softokn-freebl-3.12.8-1.el6_0.x86_64 4/14
Updating : glibc-headers-2.12-1.7.el6_0.5.x86_64 5/14
Installing : nss-softokn-freebl-3.12.8-1.el6_0.i686 6/14
Installing : glibc-2.12-1.7.el6_0.5.i686 7/14
Updating : glibc-devel-2.12-1.7.el6_0.5.x86_64 8/14
Installing : libstdc++-4.4.4-13.el6.i686 9/14
Cleanup : glibc-devel-2.12-1.7.el6.x86_64 10/14
Cleanup : glibc-headers-2.12-1.7.el6.x86_64 11/14
Cleanup : glibc-common-2.12-1.7.el6.x86_64 12/14
Cleanup : glibc-2.12-1.7.el6.x86_64 13/14
Cleanup : nss-softokn-freebl-3.12.7-1.1.el6.x86_64 14/14
Installed:
libstdc++.i686 0:4.4.4-13.el6
Dependency Installed:
glibc.i686 0:2.12-1.7.el6_0.5 libgcc.i686 0:4.4.4-13.el6 nss-softokn-freebl.i686 0:3.12.8-1.el6_0
Dependency Updated:
glibc.x86_64 0:2.12-1.7.el6_0.5 glibc-common.x86_64 0:2.12-1.7.el6_0.5 glibc-devel.x86_64 0:2.12-1.7.el6_0.5
glibc-headers.x86_64 0:2.12-1.7.el6_0.5 nss-softokn-freebl.x86_64 0:3.12.8-1.el6_0
Complete!
4.再次执行[root@localhost server]# ./db2prereqcheck就没有报错了
文章来自:http://www.cnblogs.com/itwuya/p/4043492.html