When some commands are executed in centos6.2, the following error occurs:
Error while loading shared libraries: libstdc ++. so.6: cannot open shared object file: no such file or directory
Solution:
1. Execute the command: Yum whatprovides libstdc ++. so.6
Then the system will prompt which installation package has the following library file:
[Root @ localhost ~] # Yum whatprovides libstdc ++. so.6
Loaded plugins: aliases, changelog, downloadonly, fastestmirror, KABI, presto, refresh-packagekit, security, tmprepo, verify,
: Versionlock
Loading support for centos kernel Abi
Loading mirror speeds from cached hostfile
* Base: centos.ustc.edu.cn
* Centosplus: centos.ustc.edu.cn
* Contrib: centos.ustc.edu.cn
* Extras: centos.ustc.edu.cn
* Updates: centos.ustc.edu.cn
Libstdc ++-4.4.7-3. el6.i686: GNU Standard C ++ Library
Repo: Base
Matched from:
Other: libstdc ++. so.6
2. Run the following command:
Yum install libstdc ++-4.4.7-3. el6.i686
Done!