今天安装 jdk 时出现如下错误
[root@localhost sftscr]# ./java_ee_sdk-5_03-linux.bin
./java_ee_sdk-5_03-linux.bin: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory
[root@localhost sftscr]#
经检查,发现libstdc包如下:
[root@localhost ~]# ls /usr/lib/libstdc*
/usr/lib/libstdc++.so.5 /usr/lib/libstdc++.so.6
/usr/lib/libstdc++.so.5.0.7 /usr/lib/libstdc++.so.6.0.8
[root@localhost ~]#
于是下载 compat-libstdc++-33-3.2.3-47.3.i386.rpm
接着安装 rpm -ivh compat-libstdc++-33-3.2.3-47.3.i386.rpm
现安装 jdk, 一切问题解决.