最近在使用gdb调试问题的时候遇到下面这个错误:
Error while reading shared library symbols for /lib64/libstdc++.so.6:
could not find ‘.gnu_debugaltlink’ file for /usr/lib/debug/usr/lib64/libstdc++.so.6.0.25-8.5.0-20.el8.x86_64.debug
意思是说找不(/usr/lib/debug/usr/lib64/libstdc++.so.6.0.25-8.5.0-20.el8.x86_64.debug需要的)到文件.gnu_debugaltlink。
最后的解决方法是安装gcc-debuginfo。因为libstdc+±debuginfo, 依赖这个gcc-debuginfo。还是不能图省事不安装。
libstdc+±debuginfo-8.5.0-20.el8.x86_64.rpm
#rpm -ivh libstdc+±debuginfo-8.5.0-20.el8.x86_64.rpm
error: Failed dependencies:
gcc-debuginfo(x86-64) = 8.5.0-20.el8 is needed by libstdc+±debuginfo-8.5.0-20.el8.x86_64