执行某些命令时,有缺少共享库的报错:
error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
解决办法:
1、执行命令: yum whatprovides libstdc++.so.6
admin@rocketmq-master1 ~]# yum whatprovides libstdc++.so.6
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: tlinux-mirror.tencent-cloud.com
* cr: tlinux-mirror.tencent-cloud.com
* fasttrack: tlinux-mirror.tencent-cloud.com
* tlinux: tlinux-mirror.tencent-cloud.com
* tlinux-debuginfo: tlinux-mirror.tencent-cloud.com
* updates: tlinux-mirror.tencent-cloud.com
base